From 897426bf37f54d766f33997b4abdf9343c3b7b4e Mon Sep 17 00:00:00 2001 From: Lee Jin Hyuk <125119237+LJH098@users.noreply.github.com> Date: Thu, 14 Nov 2024 23:17:54 +0900 Subject: [PATCH] =?UTF-8?q?deploy:=20CI/CD=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-deploy-container.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prod-deploy-container.yml b/.github/workflows/prod-deploy-container.yml index 1890a02..caa1ac7 100644 --- a/.github/workflows/prod-deploy-container.yml +++ b/.github/workflows/prod-deploy-container.yml @@ -93,8 +93,8 @@ jobs: script: | cd /home/${{ secrets.EC2_USER }} # docker-compose.yml 파일 위치로 이동 - # 기존 컨테이너 중지 - sudo docker-compose down + # 기존 SpringServer 컨테이너 중지 + sudo docker-compose stop SpringServer # 사용 중인 이미지 제거 (캐시 무효화를 위해) sudo docker images -q ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_IMAGE_NAME }} | xargs -r sudo docker rmi