Skip to content

Commit

Permalink
Updated the update_primary_nginx.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander Johansen committed Mar 5, 2025
1 parent 7f72c2e commit c4ddf85
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/update_primary_nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,25 @@ jobs:
run: env

- name: Generate Nginx Config with Environment Variables
run: envsubst '${PROD_PORT_PREFIX} ${DEV_PORT_PREFIX} ${STAG_PORT_PREFIX} ${GATEWAY_POSTFIX}' < nginx_template.txt > nginx_securefit.conf
run: |
envsubst '${PROD_PORT_PREFIX} ${DEV_PORT_PREFIX} ${STAG_PORT_PREFIX} ${GATEWAY_POSTFIX}' < nginx_template.txt > nginx_securefit.conf
- name: Show Generated Nginx Config (Before Deploy)
run: cat nginx_securefit.conf

- name: Print Current User
run: whoami
run: |
cat nginx_securefit.conf
- name: Copy Nginx Config to Server
run: sudo cp nginx_securefit.conf /etc/nginx/conf.d/nginx_securefit.conf
run: |
sudo cp ./nginx_securefit.conf /etc/nginx/conf.d/nginx_securefit.conf
- name: Show Deployed Nginx Config
run: cat /etc/nginx/conf.d/nginx_securefit.conf
run: |
cat /etc/nginx/conf.d/nginx_securefit.conf
- name: Restart Nginx
run: sudo systemctl reload nginx
run: |
sudo systemctl reload nginx
- name: Verify Nginx Config
run: sudo nginx -t
run: |
sudo nginx -t

0 comments on commit c4ddf85

Please sign in to comment.