add client domain to cors configuration #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: OIDC CD | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: ${{ secrets.CD_ROLE_ARN }} | |
role-session-name: ${{ github.sha }} | |
aws-region: eu-central-1 | |
- name: Create Outputs Directory | |
run: mkdir -p terraform/outputs | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21.3' | |
- name: Build Go | |
run: make build_go | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Build Node | |
run: make build_node | |
- name: Write env variables to file | |
run: | | |
echo '${{ secrets.ENV_FILE }}' > env.json | |
- name: Run Terraform | |
run: | | |
cd terraform | |
terraform init | |
terraform apply -auto-approve |