From 9e29ac72ff835a8010f70c0913b0fd2d375ec6b0 Mon Sep 17 00:00:00 2001 From: wonjunYou Date: Thu, 19 Sep 2024 01:46:33 +0900 Subject: [PATCH] =?UTF-8?q?[IDLE-000]=20cd=20=EC=8A=A4=ED=81=AC=EB=A6=BD?= =?UTF-8?q?=ED=8A=B8=20ecr=20=EC=A0=95=EB=B3=B4=20=EC=A7=81=EC=A0=91=20?= =?UTF-8?q?=EB=AA=85=EC=8B=9C=20=EB=B0=8F=20style=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/prod-server-deployer.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/prod-server-deployer.yaml b/.github/workflows/prod-server-deployer.yaml index d5fe9492..3c82717d 100644 --- a/.github/workflows/prod-server-deployer.yaml +++ b/.github/workflows/prod-server-deployer.yaml @@ -81,12 +81,12 @@ jobs: key: ${{ secrets.INSTANCE_PEM_KEY }} script: | sudo docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} - sudo docker pull public.ecr.aws/f5q3r6m5/idle-prod-ecr:$IMAGE_TAG - if [ $(sudo docker ps -q -f name=caremeet_server_prod) ]; then - sudo docker stop caremeet_server_prod - sudo docker rm caremeet_server_prod + sudo docker pull public.ecr.aws/f5q3r6m5/idle-prod-ecr:latest + if sudo docker ps -q -f name=caremeet_server_prod; then + sudo docker stop caremeet_server_prod + sudo docker rm caremeet_server_prod fi - sudo docker run --name caremeet_server_prod --env-file ./app/docker/.env -d -p 8080:8080 public.ecr.aws/f5q3r6m5/idle-prod-ecr:$IMAGE_TAG + sudo docker run --name caremeet_server_prod --env-file ./app/docker/.env -d -p 8080:8080 public.ecr.aws/f5q3r6m5/idle-prod-ecr:latest - name: Remove GitHub Actions IP run: |