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 a5c4c87 commit f9945ab
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/update_primary_nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ jobs:
- name: Check environment variables
run: env

# Precompute DEV_PORT_PREFIX, STAG_PORT_PREFIX, and PROD_PORT_PREFIX
- name: Compute port prefixes
run: |
DEV_PORT_PREFIX="${PORT_PREFIX}${GROUP_ID}${DEV_POSTFIX}"
STAG_PORT_PREFIX="${PORT_PREFIX}${GROUP_ID}${STAG_POSTFIX}"
PROD_PORT_PREFIX="${PORT_PREFIX}${GROUP_ID}${PROD_POSTFIX}"
echo "DEV_PORT_PREFIX=${DEV_PORT_PREFIX}" >> $GITHUB_ENV
echo "STAG_PORT_PREFIX=${STAG_PORT_PREFIX}" >> $GITHUB_ENV
echo "PROD_PORT_PREFIX=${PROD_PORT_PREFIX}" >> $GITHUB_ENV
# Use sed with a different delimiter (|) to avoid issues with forward slashes
- name: Create temporary nginx config file
run: |
Expand Down

0 comments on commit f9945ab

Please sign in to comment.