From 06da6ac647b274c88c2b5a399d056e35c12ed499 Mon Sep 17 00:00:00 2001 From: Ann-Marie Aeronuwy Francoise Revillard Date: Tue, 18 Mar 2025 12:53:49 +0100 Subject: [PATCH] Update update_primary_nginx.yml --- .github/workflows/update_primary_nginx.yml | 9 +++++++++ 1 file changed, 9 insertions(+) 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