2025-11-28 15:34:52 +01:00
|
|
|
---
|
2025-11-28 20:53:52 +01:00
|
|
|
name: tofu plan k8s-wheatley
|
2025-11-28 15:34:52 +01:00
|
|
|
on:
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
workflow_call:
|
|
|
|
|
pull_request:
|
|
|
|
|
branches:
|
|
|
|
|
- main
|
|
|
|
|
# paths:
|
2025-11-29 11:15:28 +01:00
|
|
|
# - pve01.wheatley.in/k8s-wheatley/**
|
|
|
|
|
|
2025-11-28 15:34:52 +01:00
|
|
|
jobs:
|
2025-11-28 20:53:52 +01:00
|
|
|
tofu-plan-k8s-wheatley:
|
2025-11-28 15:34:52 +01:00
|
|
|
runs-on: docker
|
2026-01-19 15:35:38 +01:00
|
|
|
defaults:
|
|
|
|
|
run:
|
|
|
|
|
working-directory: ${{ env.tf_actions_working_dir }}
|
|
|
|
|
permissions:
|
|
|
|
|
pull-requests: write
|
2025-11-28 15:34:52 +01:00
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v4
|
2026-01-19 15:40:41 +01:00
|
|
|
- uses: actions/setup-opentofu@v1
|
2026-02-18 12:43:31 +01:00
|
|
|
with:
|
|
|
|
|
tofu_version: 1.11.5
|
|
|
|
|
|
|
|
|
|
- name: OpenTofu Init
|
|
|
|
|
id: init
|
|
|
|
|
run: tofu init --upgrade
|
2025-11-29 12:15:12 +01:00
|
|
|
|
2025-11-28 15:34:52 +01:00
|
|
|
- name: OpenTofu fmt
|
|
|
|
|
id: fmt
|
|
|
|
|
run: tofu fmt -check
|
|
|
|
|
|
|
|
|
|
- name: OpenTofu Validate
|
|
|
|
|
id: validate
|
|
|
|
|
run: tofu validate -no-color
|
|
|
|
|
|
|
|
|
|
- name: OpenTofu Plan
|
|
|
|
|
id: plan
|
2026-01-19 15:35:38 +01:00
|
|
|
run: tofu plan -no-color
|
2025-11-28 15:34:52 +01:00
|
|
|
continue-on-error: true
|