Skip to content

Commit

Permalink
Merge pull request #118 from FreakPeople/chore/#116-배포-상태에서-컨테이너-삭제시-…
Browse files Browse the repository at this point in the history
…관련-이미지-삭제하도록-코드-추가

chore: 배포 상태에서 컨테이너 삭제시 관련 이미지 삭제하도록 코드 추가
  • Loading branch information
Jeongjjuna authored Sep 29, 2024
2 parents b903bea + b674a1d commit 6ae8d61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ jobs:
script: |
docker stop cstar-backend-container || true
docker rm cstar-backend-container || true
docker rmi ${{ steps.login-ecr.outputs.registry }}/cstar-backend-server:latest || true
docker pull ${{ steps.login-ecr.outputs.registry }}/cstar-backend-server:latest
docker run -d --name cstar-backend-container -p 80:8080 ${{ steps.login-ecr.outputs.registry }}/cstar-backend-server:latest

0 comments on commit 6ae8d61

Please sign in to comment.