From 005dfaed242e031adf32dcbb4fb14033613d1079 Mon Sep 17 00:00:00 2001 From: Soeun Uhm Date: Thu, 11 Jan 2024 18:37:08 +0900 Subject: [PATCH] :hammer: fix workflow --- .github/workflows/main.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index c4efba2..454d835 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -71,9 +71,9 @@ jobs: # 새로운 이미지 기반으로 컨테이너 실행 script: | - sudo docker ps -a --filter "name=${{ secrets.PROJECT_NAME }}" | xargs -r sudo docker stop - sudo docker ps -a --filter "name=${{ secrets.PROJECT_NAME }}" | xargs -r sudo docker kill - sudo docker ps -a --filter "name=${{ secrets.PROJECT_NAME }}" | 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 kill + 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 }}