add templates workflow
All checks were successful
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Successful in 16s
All checks were successful
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Successful in 16s
This commit is contained in:
parent
9c022c1097
commit
9a87db467f
1 changed files with 48 additions and 0 deletions
48
.forgejo/workflows/tofu-plan-templates.yaml
Normal file
48
.forgejo/workflows/tofu-plan-templates.yaml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
---
|
||||
name: tofu plan k8s-wheatley
|
||||
on:
|
||||
workflow_dispatch:
|
||||
workflow_call:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- pve01.wheatley.in/templates/**
|
||||
- .forgejo/workflows/tofu-plan-templates.yaml
|
||||
|
||||
jobs:
|
||||
tofu-plan-k8s-wheatley:
|
||||
runs-on: docker
|
||||
defaults:
|
||||
run:
|
||||
working-directory: pve01.wheatley.in/templates
|
||||
permissions:
|
||||
pull-requests: write
|
||||
env:
|
||||
AWS_S3_ENDPOINT: ${{ secrets.AWS_S3_ENDPOINT }}
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
TF_VAR_proxmox_endpoint: ${{ secrets.PROXMOX_ENDPOINT }}
|
||||
TF_VAR_proxmox_api_token: ${{ secrets.PROXMOX_API_TOKEN }}
|
||||
steps:
|
||||
- uses: https://github.com/actions/checkout@v4
|
||||
- uses: https://github.com/opentofu/setup-opentofu@v1
|
||||
with:
|
||||
tofu_version: 1.11.5
|
||||
|
||||
- name: OpenTofu Init
|
||||
id: init
|
||||
run: tofu init --upgrade
|
||||
|
||||
- name: OpenTofu Format
|
||||
id: fmt
|
||||
run: tofu fmt -check
|
||||
|
||||
- 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