This repository was archived by the owner on Jan 13, 2025. It is now read-only.
Merge pull request #71 from presentium/main #43
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: Apply terraform plan | |
on: | |
push: | |
branches: | |
- production | |
permissions: | |
contents: read | |
id-token: write | |
pull-requests: write | |
jobs: | |
apply: | |
runs-on: ubuntu-latest | |
name: Apply the terraform plan | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: ${{ vars.AWS_REGION }} | |
role-to-assume: ${{ vars.AWS_ARN }} | |
- name: Add environment variables | |
shell: bash | |
run: |- | |
echo "${{ secrets.INFRASTRUCTURE_TFVARS }}" | base64 -d > infrastructure/secrets.auto.tfvars | |
- name: terraform apply | |
uses: ./.github/actions/terraform-apply | |
with: | |
path: infrastructure |