chore: Add tofu workflows #1
1 changed files with 8 additions and 1 deletions
|
|
@ -7,7 +7,10 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
# paths:
|
# paths:
|
||||||
# - pve01.wheatley.in/k8s-whealtey/**
|
# - pve01.wheatley.in/k8s-wheatley/**
|
||||||
|
|
||||||
|
env:
|
||||||
|
TOFU_DIR: pve01.wheatley.in/k8s-wheatley
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tofu-plan-k8s-wheatley:
|
tofu-plan-k8s-wheatley:
|
||||||
|
|
@ -19,17 +22,21 @@ jobs:
|
||||||
- name: OpenTofu fmt
|
- name: OpenTofu fmt
|
||||||
id: fmt
|
id: fmt
|
||||||
run: tofu fmt -check
|
run: tofu fmt -check
|
||||||
|
working-directory: ${{ env.TOFU_DIR }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: OpenTofu Init
|
- name: OpenTofu Init
|
||||||
id: init
|
id: init
|
||||||
run: tofu init
|
run: tofu init
|
||||||
|
working-directory: ${{ env.TOFU_DIR }}
|
||||||
|
|
||||||
- name: OpenTofu Validate
|
- name: OpenTofu Validate
|
||||||
id: validate
|
id: validate
|
||||||
run: tofu validate -no-color
|
run: tofu validate -no-color
|
||||||
|
working-directory: ${{ env.TOFU_DIR }}
|
||||||
|
|
||||||
- name: OpenTofu Plan
|
- name: OpenTofu Plan
|
||||||
id: plan
|
id: plan
|
||||||
run: tofu plan -no-color
|
run: tofu plan -no-color
|
||||||
|
working-directory: ${{ env.TOFU_DIR }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue