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 ae6c21c commit 8a1fd3d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/update_primary_nginx.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Setup Nginx from Configuration File
name: Setup Nginx from Configuration Files

on:
workflow_dispatch:
Expand All @@ -21,11 +21,15 @@ jobs:
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
- name: Copy Nginx config to correct place
run: sudo cp temp_default.conf /etc/nginx/conf.d/default.conf
- name: Copy Nginx config files
run: |
sudo cp temp_default.conf /etc/nginx/conf.d/default.conf
sudo cp nginx_securefit.conf /etc/nginx/conf.d/nginx_securefit.conf
- name: Show Nginx config
run: cat /etc/nginx/conf.d/default.conf
- name: Show Nginx config files
run: |
cat /etc/nginx/conf.d/default.conf
cat /etc/nginx/conf.d/nginx_securefit.conf
- name: Reload Nginx
run: sudo systemctl reload nginx

0 comments on commit 8a1fd3d

Please sign in to comment.