Skip to content

Commit

Permalink
Merge pull request #22 from Sopo2023/feat/#1
Browse files Browse the repository at this point in the history
ci: modify pipeline
  • Loading branch information
GayeongKimm authored Jul 26, 2024
2 parents 360e4c0 + 1c34046 commit e2d34b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ jobs:
port: ${{ secrets.PORT }} # ssh port (22)
envs: GITHUB_SHA
script: |
# 기존 컨테이너와 이미지를 정리
docker stop sopo_v2 || true
docker rm sopo_v2 || true
docker rmi ${{ secrets.DOCKER_USERNAME }}/sopo_v2 || true
docker pull ${{ secrets.DOCKER_USERNAME }}/sopo_v2
docker run -d -p 8080:8080 --name sopo_v2 ${{ secrets.DOCKER_USERNAME }}/sopo_v2
# Docker Compose 파일이 있는 디렉토리로 이동
mkdir -p /home/ubuntu/app
Expand Down

0 comments on commit e2d34b5

Please sign in to comment.