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