Skip to content

Add GitHub Actions workflow #1

Add GitHub Actions workflow

Add GitHub Actions workflow #1

name: Terraform Staging Workflow
on:
push:
branches:
- "*"
concurrency:
group: merge-${{ github.ref }}
jobs:
terraform:
runs-on: ubuntu-latest
environment: Staging
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Terraform
uses: hashicorp/setup-terraform@v1
with:
terraform_version: 1.8.4
terraform_wrapper: false
- name: Terraform Init
run: terraform init
- name: Terraform Plan
run: terraform plan
- name: Terraform Apply
run: terraform apply -auto-approve
env:
TF_VAR_region: "asia-southeast1"
TF_VAR_environment: "staging"