diff --git a/.github/workflows/update_primary_nginx.yml b/.github/workflows/update_primary_nginx.yml index ec0778b..eb36cf3 100644 --- a/.github/workflows/update_primary_nginx.yml +++ b/.github/workflows/update_primary_nginx.yml @@ -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