chore: Add tofu plan workflow
All checks were successful
tofu plan / opentofu (pull_request) Successful in 10s
All checks were successful
tofu plan / opentofu (pull_request) Successful in 10s
This commit is contained in:
parent
c10aded847
commit
1f6970c321
1 changed files with 35 additions and 0 deletions
35
.forgejo/workflows/tofu-plan.yaml
Normal file
35
.forgejo/workflows/tofu-plan.yaml
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
---
|
||||||
|
name: tofu plan
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
workflow_call:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
# paths:
|
||||||
|
# - pve01.wheatley.in/k8s-whealtey/**
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
opentofu:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: opentofu/setup-opentofu@v1
|
||||||
|
|
||||||
|
- name: OpenTofu fmt
|
||||||
|
id: fmt
|
||||||
|
run: tofu fmt -check
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: OpenTofu Init
|
||||||
|
id: init
|
||||||
|
run: tofu init
|
||||||
|
|
||||||
|
- name: OpenTofu Validate
|
||||||
|
id: validate
|
||||||
|
run: tofu validate -no-color
|
||||||
|
|
||||||
|
- name: OpenTofu Plan
|
||||||
|
id: plan
|
||||||
|
run: tofu plan -no-color
|
||||||
|
continue-on-error: true
|
||||||
Loading…
Add table
Add a link
Reference in a new issue