Skip to content

Commit f47ba88

Browse files
committed
WorkFlow updated
1 parent bd6dcf6 commit f47ba88

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ jobs:
3838
key: ${{ secrets.SERVER_SSH_KEY }}
3939
script: |
4040
# 이미 돌아가는 컨테이너가 있다면 중단/제거
41-
docker stop ${{ secrets.DOCKERHUB_REPO_NAME }} || true
42-
docker rm ${{ secrets.DOCKERHUB_REPO_NAME }} || true
41+
docker-compose down
42+
43+
# 이상한 이미지들 제거
44+
docker image prune -a
4345
4446
# 최신 이미지 pull
4547
docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPO_NAME }}:latest

0 commit comments

Comments
 (0)