Skip to content
This repository has been archived by the owner on Feb 14, 2025. It is now read-only.

Commit

Permalink
Add GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ru Chern Chong committed Jun 8, 2024
1 parent 44bf4c5 commit c66b1a0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/terraform.staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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 Apply
run: terraform apply -auto-approve
env:
TF_VAR_region: "asia-southeast1"
TF_VAR_environment: "staging"
TF_VAR_telegram_bot_token: ${{ secrets.TELEGRAM_BOT_TOKEN }}

0 comments on commit c66b1a0

Please sign in to comment.