From 5c9d7e0a3c028183e11868f8ef28ada131355061 Mon Sep 17 00:00:00 2001 From: Arachne <66822642+Arachneee@users.noreply.github.com> Date: Tue, 15 Oct 2024 17:44:00 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20blue=20green=20=EB=AC=B4=EC=A4=91?= =?UTF-8?q?=EB=8B=A8=20=EB=B0=B0=ED=8F=AC=20=EC=8A=A4=ED=81=AC=EB=A6=BD?= =?UTF-8?q?=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/backend-prod.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/backend-prod.yml b/.github/workflows/backend-prod.yml index cee97918..5bc5b929 100644 --- a/.github/workflows/backend-prod.yml +++ b/.github/workflows/backend-prod.yml @@ -115,20 +115,20 @@ jobs: done echo # 줄바꿈 - - name: Health check the new container - run: | - echo "Performing health check for the new container on port $NEXT_PORT..." - HEALTH_STATUS=$(curl -s http://localhost:$NEXT_PORT/actuator/health | sed -n 's/.*"status":"\([^"]*\)".*/\1/p') - - echo "Health check status: $HEALTH_STATUS" - - if [ "$HEALTH_STATUS" != "UP" ]; then - echo "Health check failed. Rolling back..." - sudo docker rm -f haengdong-backend-$NEXT_PORT - exit 1 - fi - - echo "Health check passed." +# - name: Health check the new container +# run: | +# echo "Performing health check for the new container on port $NEXT_PORT..." +# HEALTH_STATUS=$(curl -s http://localhost:$NEXT_PORT/actuator/health | sed -n 's/.*"status":"\([^"]*\)".*/\1/p') +# +# echo "Health check status: $HEALTH_STATUS" +# +# if [ "$HEALTH_STATUS" != "UP" ]; then +# echo "Health check failed. Rolling back..." +# sudo docker rm -f haengdong-backend-$NEXT_PORT +# exit 1 +# fi +# +# echo "Health check passed." - name: Update or create Nginx container to point to new container port run: |