From 289a0fc75a1b4f0c7e8dd39b58debacb2436ce04 Mon Sep 17 00:00:00 2001 From: Jonathan Inge Arvesen Folland Date: Thu, 20 Mar 2025 15:46:20 +0100 Subject: [PATCH] Update update_primary_nginx.yml --- .github/workflows/update_primary_nginx.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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