GitHub Action for setting up a workflow to execute terraform apply
operations in CI/CD pipelines for a given workspace.
jobs:
main:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Setup Terraform
uses: flipgroup/action-terraform-apply@main
with:
version: 1.7.5
workspace: prod
# -- as an example --
- name: Terraform apply
run: |
cd ops/my-terraform-configuration
terraform init
terraform apply