Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Merge pull request #71 from presentium/main #43

Merge pull request #71 from presentium/main

Merge pull request #71 from presentium/main #43

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