diff --git a/.github/workflows/update_primary_nginx.yml b/.github/workflows/update_primary_nginx.yml index f733e3c..8454cac 100644 --- a/.github/workflows/update_primary_nginx.yml +++ b/.github/workflows/update_primary_nginx.yml @@ -6,7 +6,7 @@ on: jobs: deploy: runs-on: self-hosted - + steps: - name: Checkout repository uses: actions/checkout@v3 @@ -19,7 +19,7 @@ jobs: - name: Generate Nginx config run: | - envsubst '\$GROUP_ID \$DOMAIN \$URL_PREFIX \$PORT_PREFIX \$DEV_POSTFIX \$STAG_POSTFIX \$PROD_POSTFIX \$BACKEND_POSTFIX \$FRONTEND_POSTFIX \$GATEWAY_POSTFIX' < ./nginx_template.txt > temp_default.conf + envsubst '\$GROUP_ID \$DOMAIN \$URL_PREFIX \$DEV_PORT_PREFIX \$STAG_PORT_PREFIX \$PROD_PORT_PREFIX \$DEV_BACKEND_PORT \$DEV_FRONTEND_PORT \$DEV_GATEWAY_PORT \$STAG_BACKEND_PORT \$STAG_FRONTEND_PORT \$STAG_GATEWAY_PORT \$PROD_BACKEND_PORT \$PROD_FRONTEND_PORT \$PROD_GATEWAY_PORT' < ./nginx_template.txt > temp_default.conf - name: Copy Nginx config files run: | @@ -34,6 +34,5 @@ jobs: - name: Test Nginx configuration run: sudo nginx -t - - name: Reload Nginx run: sudo systemctl reload nginx