From 487bf8ba7fbeeab0c46702078c692c8b86c70450 Mon Sep 17 00:00:00 2001 From: sycuuui <102959791+sycuuui@users.noreply.github.com> Date: Sun, 31 Aug 2025 14:57:52 +0900 Subject: [PATCH] =?UTF-8?q?#142=20fix:=20cd.yml=20=EC=98=A4=ED=83=80=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CD.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index c6eb324..f3e3ea8 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -84,9 +84,10 @@ jobs: if curl -fs http://localhost:${NEXT_PORT}/actuator/health; then ln -sfn ~/nginx/${NEXT_CONF} ~/nginx/nginx.conf - docker exec -T nginx nginx -s reload || docker compose restart nginx - docker --profile $CURRENT_PROFILE stop $CURRENT_NAME - docker --profile $CURRENT_PROFILE rm -f $CURRENT_NAME + docker exec -i nginx nginx -t + docker exec -i nginx nginx -s reload || docker restart nginx + docker compose --profile $CURRENT_PROFILE stop $CURRENT_NAME + docker compose --profile $CURRENT_PROFILE rm -f $CURRENT_NAME else echo "New app failed health check. Rolling back..." docker compose --profile $NEXT_PROFILE stop $NEXT_NAME