This commit is contained in:
Peter 2025-10-26 12:05:28 +01:00
parent 59c9e261a5
commit fd7eb9ce04
Signed by: Peter
SSH key fingerprint: SHA256:B5tYaxBExaDm74r1px9iVeZ6F/ZDiyiy9SbBqfZYrvg

View file

@ -1,52 +0,0 @@
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 OpenTofu
uses: opentofu/setup-opentofu@v1
- name: Tofu Format Check
working-directory: pve01.wheatley.in/k8s-wheatley
run: tofu fmt -check
- name: Tofu Init
working-directory: pve01.wheatley.in/k8s-wheatley
run: tofu init -backend=false
- name: Tofu Validate
working-directory: pve01.wheatley.in/k8s-wheatley
run: tofu validate
- name: Tofu Plan
env:
TF_VAR_proxmox_endpoint: ${{ secrets.PROXMOX_ENDPOINT }}
TF_VAR_proxmox_api_token: ${{ secrets.PROXMOX_API_TOKEN }}
working-directory: pve01.wheatley.in/k8s-wheatley
run: tofu plan -out=tfplan
- name: Tofu Apply
env:
TF_VAR_proxmox_endpoint: ${{ secrets.PROXMOX_ENDPOINT }}
TF_VAR_proxmox_api_token: ${{ secrets.PROXMOX_API_TOKEN }}
working-directory: pve01.wheatley.in/k8s-wheatley
run: tofu apply -auto-approve tfplan