From 3cf603421c9f2f402037c3217b6d40632af7f4be Mon Sep 17 00:00:00 2001 From: kimyechan Date: Mon, 1 Jul 2024 09:58:51 +0900 Subject: [PATCH] =?UTF-8?q?Test:=20=EB=B8=94=EB=A3=A8-=EA=B7=B8=EB=A6=B0?= =?UTF-8?q?=20=EB=AC=B4=EC=A4=91=EB=8B=A8=20=EB=B0=B0=ED=8F=AC=20=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-prod.yaml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-prod.yaml b/.github/workflows/deploy-prod.yaml index 401b28c..efb38b8 100644 --- a/.github/workflows/deploy-prod.yaml +++ b/.github/workflows/deploy-prod.yaml @@ -98,12 +98,8 @@ jobs: sudo systemctl reload nginx # 이전 컨테이너 중지 및 제거 - for OLD_CONTAINER_NAME in $OLD_CONTAINER; do - if sudo docker ps -a --format '{{.Names}}' | grep -Eq "^${OLD_CONTAINER_NAME}\$"; then - sudo docker stop $OLD_CONTAINER_NAME - sudo docker rm $OLD_CONTAINER_NAME - fi - done + sudo docker stop $OLD_CONTAINER + sudo docker rm $OLD_CONTAINER # 실행 중인 Docker 컨테이너 확인 sudo docker ps