From 53416d1db6cbc4b44cdb73a3d035f4a35892ecd2 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Sun, 27 Jul 2025 16:22:42 +0200 Subject: [PATCH] ci: Add workflow for Terraform --- .github/workflows/plan.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/plan.yaml diff --git a/.github/workflows/plan.yaml b/.github/workflows/plan.yaml new file mode 100644 index 0000000..b5f4003 --- /dev/null +++ b/.github/workflows/plan.yaml @@ -0,0 +1,26 @@ +name: Prepare Terraform plan +on: [push] + +jobs: + terraform: + name: 'Terraform' + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Terraform + uses: hashicorp/setup-terraform@v3 + with: + cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} + - name: Terraform fmt + id: fmt + run: terraform fmt -check + continue-on-error: true + - name: Terraform init + run: terraform init --input=false + - name: Terraform Validate + id: validate + run: terraform validate -no-color + - name: Terraform apply + id: apply + run: terraform apply --input=false