Skip to content

Commit

Permalink
[Fix]: fix yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bayy1216 committed Jun 19, 2024
1 parent 2a06ee6 commit 4f426b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ jobs:
port: 22
script: |
docker rm -f $(docker ps -qa --filter "name=zzansuni-spring") # 기존 zzansuni-spring 서버만 잡아서 중지합니다.
docker rmi $(docker images -q) # 기존에 사용되고 있는 도커 이미지들을 제거합니다.
# 기존에 사용되던 spring 이미지만 제거합니다.
docker rmi $(docker images -q --filter "reference=${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKER_REPOSITORY }}")
docker image prune -f # 사용하지 않는 도커 이미지들을 제거합니다.
docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKER_REPOSITORY }}:${{ github.sha }}
Expand Down

0 comments on commit 4f426b4

Please sign in to comment.