wip
This commit is contained in:
parent
59c9e261a5
commit
fd7eb9ce04
1 changed files with 0 additions and 52 deletions
|
|
@ -1,52 +0,0 @@
|
|||
name: Tofu Plan
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
push:
|
||||
branches-ignore:
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
tofu:
|
||||
runs-on: docker
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup OpenTofu
|
||||
uses: opentofu/setup-opentofu@v1
|
||||
|
||||
- name: Tofu Format Check
|
||||
working-directory: pve01.wheatley.in/k8s-wheatley
|
||||
run: tofu fmt -check
|
||||
|
||||
- name: Tofu Init
|
||||
working-directory: pve01.wheatley.in/k8s-wheatley
|
||||
run: tofu init -backend=false
|
||||
|
||||
- name: Tofu Validate
|
||||
working-directory: pve01.wheatley.in/k8s-wheatley
|
||||
run: tofu validate
|
||||
|
||||
- name: Tofu Plan
|
||||
env:
|
||||
TF_VAR_proxmox_endpoint: ${{ secrets.PROXMOX_ENDPOINT }}
|
||||
TF_VAR_proxmox_api_token: ${{ secrets.PROXMOX_API_TOKEN }}
|
||||
working-directory: pve01.wheatley.in/k8s-wheatley
|
||||
run: tofu plan -out=tfplan
|
||||
|
||||
- name: Tofu Apply
|
||||
env:
|
||||
TF_VAR_proxmox_endpoint: ${{ secrets.PROXMOX_ENDPOINT }}
|
||||
TF_VAR_proxmox_api_token: ${{ secrets.PROXMOX_API_TOKEN }}
|
||||
working-directory: pve01.wheatley.in/k8s-wheatley
|
||||
run: tofu apply -auto-approve tfplan
|
||||
Loading…
Add table
Add a link
Reference in a new issue