chore: Add tofu workflows #1

Open
Peter wants to merge 25 commits from pgi-add-workflows into main
Showing only changes of commit 470b6dcb8e - Show all commits

View file

@ -7,7 +7,10 @@ on:
branches:
- main
# paths:
# - pve01.wheatley.in/k8s-whealtey/**
# - pve01.wheatley.in/k8s-wheatley/**
env:
TOFU_DIR: pve01.wheatley.in/k8s-wheatley
jobs:
tofu-plan-k8s-wheatley:
@ -19,17 +22,21 @@ jobs:
- name: OpenTofu fmt
id: fmt
run: tofu fmt -check
working-directory: ${{ env.TOFU_DIR }}
continue-on-error: true
- name: OpenTofu Init
id: init
run: tofu init
working-directory: ${{ env.TOFU_DIR }}
- name: OpenTofu Validate
id: validate
run: tofu validate -no-color
working-directory: ${{ env.TOFU_DIR }}
- name: OpenTofu Plan
id: plan
run: tofu plan -no-color
working-directory: ${{ env.TOFU_DIR }}
continue-on-error: true