chore: Add tofu workflows #1

Merged
Peter merged 82 commits from pgi-add-workflows into main 2026-02-18 22:55:53 +01:00
Showing only changes of commit 9c022c1097 - Show all commits

View file

@ -8,7 +8,7 @@ on:
- main
paths:
- pve01.wheatley.in/k8s-wheatley/**
- .forgejo/workflows/tofu-plan-k8s-wheatley.yaml
- .forgejo/workflows/tofu-plan-k8s-wheatley.yaml
jobs:
tofu-plan-k8s-wheatley:
@ -25,24 +25,24 @@ jobs:
TF_VAR_proxmox_endpoint: ${{ secrets.PROXMOX_ENDPOINT }}
TF_VAR_proxmox_api_token: ${{ secrets.PROXMOX_API_TOKEN }}
steps:
- uses: https://github.com/actions/checkout@v4
- uses: https://github.com/opentofu/setup-opentofu@v1
with:
tofu_version: 1.11.5
- 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 Init
id: init
run: tofu init --upgrade
- name: OpenTofu fmt
id: fmt
run: tofu fmt -check
- name: OpenTofu Format
id: fmt
run: tofu fmt -check
- name: OpenTofu Validate
id: validate
run: tofu validate -no-color
- name: OpenTofu Validate
id: validate
run: tofu validate -no-color
- name: OpenTofu Plan
id: plan
run: tofu plan -no-color
continue-on-error: true
- name: OpenTofu Plan
id: plan
run: tofu plan -no-color
continue-on-error: true