Skip to content

Commit

Permalink
Fix attempt again
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritzs committed Mar 4, 2025
1 parent f9dce7d commit d244fe2
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions .github/workflows/update_primary_nginx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,23 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: export environment variables
- name: Export environment variables
run: |
export GROUP_ID=05
export PORT_PREFIX=2
export DEV_POSTFIX=1
export STAG_POSTFIX=2
export PROD_POSTFIX=3
export DEV_PORT_PREFIX=${PORT_PREFIX}${GROUP_ID}${DEV_POSTFIX}
export STAG_PORT_PREFIX=${PORT_PREFIX}${GROUP_ID}${STAG_POSTFIX}
export PROD_PORT_PREFIX=${PORT_PREFIX}${GROUP_ID}${PROD_POSTFIX}
export GATEWAY_POSTFIX=6
- name: Debug Environment Variables
run: |
echo "DEV_PORT_PREFIX=${DEV_PORT_PREFIX}"
echo "STAG_PORT_PREFIX=${STAG_PORT_PREFIX}"
echo "PROD_PORT_PREFIX=${PROD_PORT_PREFIX}"
echo "GATEWAY_POSTFIX=${GATEWAY_POSTFIX}"
export GROUP_ID="05"
export PORT_PREFIX="2"
export DEV_POSTFIX="1"
export STAG_POSTFIX="2"
export PROD_POSTFIX="3"
export GATEWAY_POSTFIX="6"
export DEV_PORT_PREFIX="${PORT_PREFIX}${GROUP_ID}${DEV_POSTFIX}"
export STAG_PORT_PREFIX="${PORT_PREFIX}${GROUP_ID}${STAG_POSTFIX}"
export 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
echo "GATEWAY_POSTFIX=$GATEWAY_POSTFIX" >> $GITHUB_ENV
- name: Replace environment variables in Nginx config
run: |
Expand Down

0 comments on commit d244fe2

Please sign in to comment.