From 3878a2313ac8a757781caa4df3240fcd5cb88b8e Mon Sep 17 00:00:00 2001 From: Joe Fong Date: Mon, 11 Dec 2023 10:30:54 +0000 Subject: [PATCH] [PRMDR-464] Edit github actions to read env var CONTAINER_PORT before running `docker build` --- .github/workflows/full-ui-dispatch-deploy.yml | 3 ++- .github/workflows/new-ui-deploy-feature-to-sandbox-manual.yml | 3 ++- .github/workflows/ui-deploy-to-perf-manual.yml | 3 ++- .github/workflows/ui-deploy-to-pre-prod-manual.yml | 3 ++- .github/workflows/ui-deploy-to-prod-manual.yml | 3 ++- .github/workflows/ui-dev-to-main-ci.yml | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/full-ui-dispatch-deploy.yml b/.github/workflows/full-ui-dispatch-deploy.yml index 0d53df7a1..94cfa2bb9 100644 --- a/.github/workflows/full-ui-dispatch-deploy.yml +++ b/.github/workflows/full-ui-dispatch-deploy.yml @@ -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 diff --git a/.github/workflows/new-ui-deploy-feature-to-sandbox-manual.yml b/.github/workflows/new-ui-deploy-feature-to-sandbox-manual.yml index 19fe539fc..adeca4de5 100644 --- a/.github/workflows/new-ui-deploy-feature-to-sandbox-manual.yml +++ b/.github/workflows/new-ui-deploy-feature-to-sandbox-manual.yml @@ -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 diff --git a/.github/workflows/ui-deploy-to-perf-manual.yml b/.github/workflows/ui-deploy-to-perf-manual.yml index b83d12dba..4b5eb2a22 100644 --- a/.github/workflows/ui-deploy-to-perf-manual.yml +++ b/.github/workflows/ui-deploy-to-perf-manual.yml @@ -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 diff --git a/.github/workflows/ui-deploy-to-pre-prod-manual.yml b/.github/workflows/ui-deploy-to-pre-prod-manual.yml index edf496a4d..a55e67791 100644 --- a/.github/workflows/ui-deploy-to-pre-prod-manual.yml +++ b/.github/workflows/ui-deploy-to-pre-prod-manual.yml @@ -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 diff --git a/.github/workflows/ui-deploy-to-prod-manual.yml b/.github/workflows/ui-deploy-to-prod-manual.yml index 04b828580..84ae073a7 100644 --- a/.github/workflows/ui-deploy-to-prod-manual.yml +++ b/.github/workflows/ui-deploy-to-prod-manual.yml @@ -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 diff --git a/.github/workflows/ui-dev-to-main-ci.yml b/.github/workflows/ui-dev-to-main-ci.yml index e86f3173a..f61bfdb8c 100644 --- a/.github/workflows/ui-dev-to-main-ci.yml +++ b/.github/workflows/ui-dev-to-main-ci.yml @@ -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