From 01284f57ce48bed7a372300db3b3d78cb8734094 Mon Sep 17 00:00:00 2001 From: Soeun Uhm Date: Thu, 11 Jan 2024 18:45:56 +0900 Subject: [PATCH] :hammer: fix workflow --- .github/workflows/main.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 454d835..251a238 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -71,9 +71,8 @@ jobs: # 새로운 이미지 기반으로 컨테이너 실행 script: | - sudo docker ps -a --filter "name=${{ secrets.PROJECT_NAME }}" --format "{{.ID}} | xargs -r sudo docker stop - sudo docker ps -a --filter "name=${{ secrets.PROJECT_NAME }}" --format "{{.ID}} | xargs -r sudo docker kill - sudo docker ps -a --filter "name=${{ secrets.PROJECT_NAME }}" --format "{{.ID}} | xargs -r sudo docker rm -f + sudo docker ps -a --filter "name=${{ secrets.PROJECT_NAME }}" --format "{{.ID}}" | xargs -r sudo docker stop + sudo docker ps -a --filter "name=${{ secrets.PROJECT_NAME }}" --format "{{.ID}}" | xargs -r sudo docker rm -f sudo docker rmi ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.PROJECT_NAME }} sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.PROJECT_NAME }}