infrastructure/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml
pgijsbertsen 470b6dcb8e
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 7s
chore: Set working directory
2025-11-29 11:15:28 +01:00

42 lines
887 B
YAML

---
name: tofu plan k8s-wheatley
on:
workflow_dispatch:
workflow_call:
pull_request:
branches:
- main
# paths:
# - pve01.wheatley.in/k8s-wheatley/**
env:
TOFU_DIR: pve01.wheatley.in/k8s-wheatley
jobs:
tofu-plan-k8s-wheatley:
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: opentofu/setup-opentofu@v1
- 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