Skip to content

Commit

Permalink
Update update_primary_nginx.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jifollan authored and GitHub Enterprise committed Mar 20, 2025
1 parent 3702b6d commit 289a0fc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/update_primary_nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
deploy:
runs-on: self-hosted

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -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: |
Expand All @@ -34,6 +34,5 @@ jobs:
- name: Test Nginx configuration
run: sudo nginx -t


- name: Reload Nginx
run: sudo systemctl reload nginx

0 comments on commit 289a0fc

Please sign in to comment.