Skip to content

Commit

Permalink
Update update_primary_nginx.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
amrevill authored and GitHub Enterprise committed Mar 19, 2025
1 parent 62d87f4 commit fd78c1f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/update_primary_nginx.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: FINISHED and edited - setup nginx from the configuration file
name: Setup nginx from the configuration file
on:
workflow_dispatch:
jobs:
Expand All @@ -16,20 +16,16 @@ jobs:

- name: Check environment variables
run: env
########## ja

- name: Create temporary nginx config file
run: envsubst '${DEV_PORT_PREFIX}, ${STAG_PORT_PREFIX}, ${PROD_PORT_PREFIX}, ${GATEWAY_POSTFIX},' < ./nginx_template.txt > temp_default.conf
#run: envsubst '$REPLACE_ME $ANOTHER_VAR' < ./nginx_template.txt > temp_default.conf

- name: Copy temporary file to correct place
run: sudo cp temp_default.conf /etc/nginx/conf.d/default.conf
run: sudo cp temp_default.conf /etc/nginx/conf.d/nginx_securefit.conf
#added sudo here

- name: Show nginx file
run: cat /etc/nginx/conf.d/default.conf

# - name: Test NGINX Configuration
# run: sudo nginx -t
run: cat /etc/nginx/conf.d/nginx_securefit.conf

- name: Restart NGINX
run: sudo systemctl reload nginx

0 comments on commit fd78c1f

Please sign in to comment.