Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
fix: update GH action to use custom domain (#791)
Browse files Browse the repository at this point in the history
* fix: update GH action to use custom domain

* fix: read env variables in GH config
  • Loading branch information
SanketD92 authored Nov 9, 2021
1 parent ac72b90 commit b2fdfcb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy-integ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ jobs:
STAGE_NAME: e2etest
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_CERTIFICATE_ARN: ${{ secrets.AWS_CERTIFICATE_ARN }}
AWS_DOMAIN_NAME: ${{ secrets.AWS_DOMAIN_NAME }}
AWS_HOSTED_ZONE_ID: ${{ secrets.AWS_HOSTED_ZONE_ID }}
run: |
cp ./main/end-to-end-tests/e2eGitHubConfig.yml ./main/config/settings/${STAGE_NAME}.yml
./scripts/read-values-for-github-action.sh
./scripts/environment-deploy.sh ${STAGE_NAME}
integration-test:
name: Integration test
Expand Down
14 changes: 14 additions & 0 deletions scripts/read-values-for-github-action.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
set -e

FILE="main/config/settings/$STAGE_NAME.yml"

echo "
# Custom domain name for environment
domainName: '${AWS_DOMAIN_NAME}'
# Certs for custom domain
certificateArn: '${AWS_CERTIFICATE_ARN}'
# Hosted zone for custom domain routing
hostedZoneId: '${AWS_HOSTED_ZONE_ID}'" >> "$FILE"

0 comments on commit b2fdfcb

Please sign in to comment.