infrastructure/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml
pgijsbertsen 0f87ee19ab
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Has been cancelled
fix
2026-02-18 13:01:04 +01:00

42 lines
899 B
YAML

---
name: tofu plan k8s-wheatley
on:
workflow_dispatch:
workflow_call:
pull_request:
branches:
- main
paths:
- pve01.wheatley.in/k8s-wheatley/**
- .forgejo/workflows/tofu-plan-k8s-wheatley.yaml
jobs:
tofu-plan-k8s-wheatley:
runs-on: docker
defaults:
run:
working-directory: pve01.wheatley.in/k8s-wheatley
permissions:
pull-requests: write
steps:
- uses: https://github.com/actions/checkout@v4
- uses: https://github.com/opentofu/setup-opentofu@v1
with:
tofu_version: 1.11.5
- name: OpenTofu Init
id: init
run: tofu init --upgrade
- name: OpenTofu Format
id: fmt
run: tofu fmt -check
- name: OpenTofu Validate
id: validate
run: tofu validate -no-color
- name: OpenTofu Plan
id: plan
run: tofu plan -no-color
continue-on-error: true