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