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 18, 2025
1 parent 5c56caf commit 06da6ac
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/update_primary_nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,19 @@ jobs:
- name: Check environment variables
run: env



- name: Set environment variables
run: |
echo "DEV_PORT_PREFIX=80" >> $GITHUB_ENV
echo "STAG_PORT_PREFIX=443" >> $GITHUB_ENV
echo "GATEWAY_POSTFIX=" >> $GITHUB_ENV
#Doesn't work properly, envsubst replaces all instances of $variable and ${variable}, but we want to keep e.g., $host as nginx variables
#- name: Create temporary nginx config file
# run: envsubst < ./nginx_template.txt > temp_default.conf
# Maybe look at https://www.baeldung.com/linux/envsubst-command to get an idea

- name: Create temporary nginx config file
run: envsubst '$REPLACE_ME $ANOTHER_VAR' < ./nginx_template.txt > temp_default.conf

Expand Down

0 comments on commit 06da6ac

Please sign in to comment.