Skip to content

Commit

Permalink
deploy: CI/CD 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
LJH098 authored Nov 14, 2024
1 parent f1331b6 commit 897426b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/prod-deploy-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 897426b

Please sign in to comment.