chore: Add tofu workflows #1
1 changed files with 18 additions and 18 deletions
|
|
@ -8,7 +8,7 @@ on:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- pve01.wheatley.in/k8s-wheatley/**
|
- pve01.wheatley.in/k8s-wheatley/**
|
||||||
- .forgejo/workflows/tofu-plan-k8s-wheatley.yaml
|
- .forgejo/workflows/tofu-plan-k8s-wheatley.yaml
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tofu-plan-k8s-wheatley:
|
tofu-plan-k8s-wheatley:
|
||||||
|
|
@ -25,24 +25,24 @@ jobs:
|
||||||
TF_VAR_proxmox_endpoint: ${{ secrets.PROXMOX_ENDPOINT }}
|
TF_VAR_proxmox_endpoint: ${{ secrets.PROXMOX_ENDPOINT }}
|
||||||
TF_VAR_proxmox_api_token: ${{ secrets.PROXMOX_API_TOKEN }}
|
TF_VAR_proxmox_api_token: ${{ secrets.PROXMOX_API_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- uses: https://github.com/actions/checkout@v4
|
- uses: https://github.com/actions/checkout@v4
|
||||||
- uses: https://github.com/opentofu/setup-opentofu@v1
|
- uses: https://github.com/opentofu/setup-opentofu@v1
|
||||||
with:
|
with:
|
||||||
tofu_version: 1.11.5
|
tofu_version: 1.11.5
|
||||||
|
|
||||||
- name: OpenTofu Init
|
- name: OpenTofu Init
|
||||||
id: init
|
id: init
|
||||||
run: tofu init --upgrade
|
run: tofu init --upgrade
|
||||||
|
|
||||||
- name: OpenTofu fmt
|
- name: OpenTofu Format
|
||||||
id: fmt
|
id: fmt
|
||||||
run: tofu fmt -check
|
run: tofu fmt -check
|
||||||
|
|
||||||
- name: OpenTofu Validate
|
- name: OpenTofu Validate
|
||||||
id: validate
|
id: validate
|
||||||
run: tofu validate -no-color
|
run: tofu validate -no-color
|
||||||
|
|
||||||
- name: OpenTofu Plan
|
- name: OpenTofu Plan
|
||||||
id: plan
|
id: plan
|
||||||
run: tofu plan -no-color
|
run: tofu plan -no-color
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue