infrastructure/.forgejo/workflows/terraform-plan.yml
pgijsbertsen cb5ca9a723
Some checks failed
Tofu Plan / tofu (push) Failing after 40s
wip
2025-10-26 11:43:44 +01:00

43 lines
858 B
YAML

name: Tofu Plan
on:
pull_request:
branches: [ main ]
push:
branches-ignore:
- main
permissions:
contents: read
jobs:
tofu:
runs-on: docker
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.9.8
- name: Terraform Format Check
run: terraform fmt -check -recursive
- name: Terraform Init
run: terraform init -backend=false
- name: Terraform Validate
run: terraform validate
- name: Terraform Plan
env:
TF_VAR_proxmox_endpoint: ${{ secrets.PROXMOX_ENDPOINT }}
TF_VAR_proxmox_api_token: ${{ secrets.PROXMOX_API_TOKEN }}
run: terraform plan -out=tfplan