From c5d9c575ea7671f18ce79b3c2c1c31c6484af322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=88=98=ED=99=98?= <101265039+genius00hwan@users.noreply.github.com> Date: Sun, 24 Nov 2024 04:48:35 +0900 Subject: [PATCH] Update icurri_deploy.yml --- .github/workflows/icurri_deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/icurri_deploy.yml b/.github/workflows/icurri_deploy.yml index ffffbd2..7f43091 100644 --- a/.github/workflows/icurri_deploy.yml +++ b/.github/workflows/icurri_deploy.yml @@ -96,9 +96,9 @@ jobs: key: ${{ secrets.RELEASE_SSH_KEY }} script: | # Stop and remove all containers except MongoDB - sudo docker ps -a -q --filter "name!=mongoDB" | xargs -r sudo docker stop || true - sudo docker ps -a -q --filter "name!=mongoDB" | xargs -r sudo docker rm || true - sudo docker images -q | xargs -r docker rmi || true + sudo docker stop $(sudo docker ps -a -q) | true + sudo docker rm $(sudo docker ps -a -q) | true + sudo docker images -q | xargs -r docker rmi sudo docker system prune -af # Docker login and pull new image from ECR