Skip to content

Commit

Permalink
pass the variables
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-nhs committed Sep 20, 2024
1 parent 0ddb028 commit cc3828a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,10 @@ jobs:
LOG_RETENTION_DAYS: 30
secrets:
CLOUD_FORMATION_DEPLOY_ROLE: ${{ secrets.DEV_CLOUD_FORMATION_DEPLOY_ROLE }}
Auth0ClientID: ${{ secrets.Auth0ClientID }}
Auth0ClientSecret: ${{ secrets.Auth0ClientSecret }}
Auth0Issuer: ${{ secrets.Auth0Issuer }}
Auth0AuthorizeEndpoint: ${{ secrets.Auth0AuthorizeEndpoint }}
Auth0TokenEndpoint: ${{ secrets.Auth0TokenEndpoint }}
Auth0UserInfoEndpoint: ${{ secrets.Auth0UserInfoEndpoint }}
Auth0JWKSEndpoint: ${{ secrets.Auth0JWKSEndpoint }}
21 changes: 21 additions & 0 deletions .github/workflows/release_code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,20 @@ on:
required: false
DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE:
required: false
Auth0ClientID:
required: false
Auth0ClientSecret:
required: false
Auth0Issuer:
required: false
Auth0AuthorizeEndpoint:
required: false
Auth0TokenEndpoint:
required: false
Auth0UserInfoEndpoint:
required: false
Auth0JWKSEndpoint:
required: false

jobs:
release_code:
Expand Down Expand Up @@ -108,6 +122,13 @@ jobs:
-e AWS_SESSION_TOKEN=${{ steps.connect-aws.outputs.aws-session-token }} \
-e AWS_REGION="eu-west-2" \
-e stack_name="${{ inputs.STACK_NAME }}" \
-e Auth0ClientID="${{ secrets.Auth0ClientID}}" \
-e Auth0ClientSecret="${{ secrets.Auth0ClientSecret}}" \
-e Auth0Issuer="${{ secrets.Auth0Issuer}}" \
-e Auth0AuthorizeEndpoint="${{ secrets.Auth0AuthorizeEndpoint}}" \
-e Auth0TokenEndpoint="${{ secrets.Auth0TokenEndpoint}}" \
-e Auth0UserInfoEndpoint="${{ secrets.Auth0UserInfoEndpoint}}" \
-e Auth0JWKSEndpoint="${{ secrets.Auth0JWKSEndpoint}}" \
clinical-prescription-tracker-ui
shell: bash

Expand Down
4 changes: 4 additions & 0 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@

source /home/cdkuser/.asdf/asdf.sh

epsZoneId=$(aws cloudformation list-exports --output json | jq -r '.Exports[] | select(.Name == "eps-route53-resources:EPS-ZoneID") | .Value' | grep -o '[^:]*$')
epsDomain=$(aws cloudformation list-exports --output json | jq -r '.Exports[] | select(.Name == "eps-route53-resources:EPS-domain") | .Value' | grep -o '[^:]*$')
export epsZoneId
export epsDomain
make cdk-deploy

0 comments on commit cc3828a

Please sign in to comment.