Skip to content

Deploy QA

Deploy QA #7

Workflow file for this run

name: Deploy QA
on:
workflow_run:
workflows: [Test]
branches: [qa]
types:
- completed
jobs:
deploy-qa:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' }}
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::946183545209:role/GithubActionsDeployerRole
aws-region: us-east-1
- uses: actions/checkout@v3
- uses: hashicorp/setup-terraform@v2
- name: npm install
run: npm ci
- name: Deploy app to QA
run: |
terraform -chdir=provisioning/qa init -input=false
terraform -chdir=provisioning/qa apply -auto-approve -input=false