From 7b3c46248c2b71c9d9cde1b02817932295778037 Mon Sep 17 00:00:00 2001 From: MichaelFisher1997 Date: Thu, 17 Apr 2025 01:40:26 +0100 Subject: [PATCH] terraform plan --- .gitea/workflows/terraform-plan.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/terraform-plan.yml b/.gitea/workflows/terraform-plan.yml index 2193931..dfac06c 100644 --- a/.gitea/workflows/terraform-plan.yml +++ b/.gitea/workflows/terraform-plan.yml @@ -1,14 +1,41 @@ name: Gitea Actions Demo run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 + on: [push] jobs: terraform: name: "Terraform Plan" runs-on: ubuntu-latest + permissions: contents: read pull-requests: write + steps: - - name: Checkout + - name: Checkout repository uses: actions/checkout@v3 + + - name: Set up Terraform + uses: hashicorp/setup-terraform@v2 + with: + terraform_version: 1.6.6 + + - name: Terraform Init + run: terraform init + + - name: Terraform Format Check + run: terraform fmt -check -recursive + + - name: Terraform Validate + run: terraform validate + + - name: Terraform Plan + run: terraform plan -out=tfplan + + - name: Upload Terraform Plan + uses: actions/upload-artifact@v3 + with: + name: terraform-plan + path: tfplan +