Skip to content

Commit

Permalink
Merge pull request #172 from boostcampwm2023/deploy/165-github-action…
Browse files Browse the repository at this point in the history
…-docker-ver

[Deploy] ssh 접속 후 도커 재시작 스크립트 수정
  • Loading branch information
mingxoxo authored Nov 29, 2023
2 parents 5775eae + 9dcaa49 commit b262267
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ jobs:
password: ${{secrets.VPC_PASSWORD}}
port: ${{secrets.VPC_PORT}}
script: |
cd /home/docker-byeolsoop
docker system prune -a
cd /home/docker-byeolsoop/srcs
docker system prune -f
docker pull byeolsoop-registry.kr.ncr.ntruss.com/backend:byeolsoop
docker compose up --force-recreate --build -d --quiet-pull 2>log.out
docker compose up --force-recreate --build -d 2>log.out
cat log.out
6 changes: 3 additions & 3 deletions .github/workflows/deploy-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ jobs:
password: ${{secrets.VPC_PASSWORD}}
port: ${{secrets.VPC_PORT}}
script: |
cd /home/docker-byeolsoop
docker system prune -a
cd /home/docker-byeolsoop/srcs
docker system prune -f
docker pull byeolsoop-registry.kr.ncr.ntruss.com/frontend:byeolsoop
docker compose up --force-recreate --build -d --quiet-pull 2>log.out
docker compose up --force-recreate --build -d 2>log.out
cat log.out

0 comments on commit b262267

Please sign in to comment.