Skip to content

Commit

Permalink
chore: 컨테이너 실행 시 이전 컨테이너를 제거한다.
Browse files Browse the repository at this point in the history
  • Loading branch information
rlarltj committed Sep 24, 2024
1 parent 46783db commit edbcd5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,7 @@ jobs:
sudo cp /home/.docker/docker-compose.yml /home
cd /home
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }}
docker-compose stop server
docker-compose rm -f server
docker-compose up -d
docker image prune -f
2 changes: 2 additions & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,7 @@ jobs:
sudo cp /home/ubuntu/.docker/docker-compose.yml /home/ubuntu
cd /home/ubuntu
sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }}
docker-compose stop server
docker-compose rm -f server
docker-compose up -d
docker image prune -f

0 comments on commit edbcd5c

Please sign in to comment.