diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 8a150f6f..46a3a260 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -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 }} diff --git a/.github/workflows/release_code.yml b/.github/workflows/release_code.yml index 1a7de2dd..c95ad4d4 100644 --- a/.github/workflows/release_code.yml +++ b/.github/workflows/release_code.yml @@ -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: @@ -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 diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index c53e9625..ddeb0119 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -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