From edbcd5cfb42d33ce8e25532d98e84eff7edb1230 Mon Sep 17 00:00:00 2001 From: rlarltj Date: Wed, 25 Sep 2024 03:06:10 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EC=BB=A8=ED=85=8C=EC=9D=B4=EB=84=88?= =?UTF-8?q?=20=EC=8B=A4=ED=96=89=20=EC=8B=9C=20=EC=9D=B4=EC=A0=84=20?= =?UTF-8?q?=EC=BB=A8=ED=85=8C=EC=9D=B4=EB=84=88=EB=A5=BC=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0=ED=95=9C=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-dev.yml | 2 ++ .github/workflows/deploy-prod.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 1718614..b65808d 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -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 diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 1dc839b..9615a90 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -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