From 1c01357c11b6ed962a389df127aec97978fbb9fb Mon Sep 17 00:00:00 2001 From: Arachne <66822642+Arachneee@users.noreply.github.com> Date: Tue, 15 Oct 2024 16:47:39 +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 | 206 ++++++++++++++--------------- 1 file changed, 103 insertions(+), 103 deletions(-) diff --git a/.github/workflows/backend-prod.yml b/.github/workflows/backend-prod.yml index f2dfd66f..775506d3 100644 --- a/.github/workflows/backend-prod.yml +++ b/.github/workflows/backend-prod.yml @@ -117,115 +117,115 @@ jobs: echo "Health check passed." - port-switch: - needs: deploy - strategy: - matrix: - runner: [ prod-1 , prod-2 ] - runs-on: [ self-hosted, '${{ matrix.runner }}' ] - steps: - - name: Update or create Nginx container to point to new container port - run: | - NGINX_CONTAINER_NAME="nginx-proxy" - - echo "Checking if Nginx container exists..." - if sudo docker ps -a --filter "name=$NGINX_CONTAINER_NAME" --format "{{.Names}}" | grep -w $NGINX_CONTAINER_NAME; then - - # Check if the Nginx container is running - if sudo docker ps --filter "name=$NGINX_CONTAINER_NAME" --format "{{.Names}}" | grep -w $NGINX_CONTAINER_NAME; then - echo "Nginx container is running." - else - echo "Nginx container exists but is not running. Starting Nginx container..." - sudo docker start $NGINX_CONTAINER_NAME - echo "Nginx container started." - fi - - # Ensure nginx-conf directory and default.conf file exist - mkdir -p ./nginx-conf - - # Create or update the default.conf file with the new configuration - echo "Creating or updating default.conf..." - - cat > ./nginx-conf/default < ./nginx-conf/default < ./nginx-conf/default < ./nginx-conf/default <