Skip to content

Commit

Permalink
[PRMDR-464] Edit github actions to read env var CONTAINER_PORT before…
Browse files Browse the repository at this point in the history
… running `docker build`
  • Loading branch information
joefong-nhs committed Dec 11, 2023
1 parent 7fd4287 commit 3878a23
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/full-ui-dispatch-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ jobs:

- uses: dkershner6/aws-ssm-getparameters-action@v1
with:
parameterPairs: '/ndr/${{ github.event.client_payload.sandbox }}/api_endpoint = DOC_STORE_API_ENDPOINT'
parameterPairs: '/ndr/${{ github.event.client_payload.sandbox }}/api_endpoint = DOC_STORE_API_ENDPOINT,
/ndr/${{ github.event.client_payload.sandbox }}/container_port = CONTAINER_PORT'
withDecryption: 'true' # defaults to true

- name: Configure React environment vars
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ jobs:

- uses: dkershner6/aws-ssm-getparameters-action@v1
with:
parameterPairs: '/ndr/${{ inputs.sandbox }}/api_endpoint = DOC_STORE_API_ENDPOINT'
parameterPairs: '/ndr/${{ inputs.sandbox }}/api_endpoint = DOC_STORE_API_ENDPOINT,
/ndr/${{ inputs.sandbox }}/container_port = CONTAINER_PORT'
withDecryption: 'true' # defaults to true

- name: Configure React environment vars
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ui-deploy-to-perf-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ jobs:

- uses: dkershner6/aws-ssm-getparameters-action@v1
with:
parameterPairs: '/ndr/${{ vars.BUILD_ENV }}/api_endpoint = DOC_STORE_API_ENDPOINT'
parameterPairs: '/ndr/${{ vars.BUILD_ENV }}/api_endpoint = DOC_STORE_API_ENDPOINT,
/ndr/${{ vars.BUILD_ENV }}/container_port = CONTAINER_PORT'
withDecryption: 'true' # defaults to true

- name: Configure React environment vars
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ui-deploy-to-pre-prod-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ jobs:

- uses: dkershner6/aws-ssm-getparameters-action@v1
with:
parameterPairs: '/ndr/${{ vars.BUILD_ENV }}/api_endpoint = DOC_STORE_API_ENDPOINT'
parameterPairs: '/ndr/${{ vars.BUILD_ENV }}/api_endpoint = DOC_STORE_API_ENDPOINT,
/ndr/${{ vars.BUILD_ENV }}/container_port = CONTAINER_PORT'
withDecryption: 'true' # defaults to true

- name: Configure React environment vars
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ui-deploy-to-prod-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ jobs:

- uses: dkershner6/aws-ssm-getparameters-action@v1
with:
parameterPairs: '/ndr/${{ vars.BUILD_ENV }}/api_endpoint = DOC_STORE_API_ENDPOINT'
parameterPairs: '/ndr/${{ vars.BUILD_ENV }}/api_endpoint = DOC_STORE_API_ENDPOINT,
/ndr/${{ vars.BUILD_ENV }}/container_port = CONTAINER_PORT'
withDecryption: 'true' # defaults to true

- name: Configure React environment vars
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ui-dev-to-main-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ jobs:

- uses: dkershner6/aws-ssm-getparameters-action@v1
with:
parameterPairs: '/ndr/${{ vars.BUILD_ENV }}/api_endpoint = DOC_STORE_API_ENDPOINT'
parameterPairs: '/ndr/${{ vars.BUILD_ENV }}/api_endpoint = DOC_STORE_API_ENDPOINT,
/ndr/${{ vars.BUILD_ENV }}/container_port = CONTAINER_PORT''
withDecryption: 'true' # defaults to true

- name: Configure React environment vars
Expand Down

0 comments on commit 3878a23

Please sign in to comment.