diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index d5c773f..c87404e 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -70,13 +70,10 @@ jobs: echo "CURRENT_PORT=8080" >> $GITHUB_ENV echo "STOPPED_PORT=8081" >> $GITHUB_ENV echo "TARGET_UPSTREAM=green" >> $GITHUB_ENV - elif [ $CURRENT_UPSTREAM = green ]; then + else echo "CURRENT_PORT=8081" >> $GITHUB_ENV echo "STOPPED_PORT=8080" >> $GITHUB_ENV echo "TARGET_UPSTREAM=blue" >> $GITHUB_ENV - else - echo "error" - exit 1 fi - name: Docker compose