Compare commits

..

25 commits

Author SHA1 Message Date
f3d0f3c7e5 debug: Print proxmox endpoint var
All checks were successful
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Successful in 13s
2025-11-29 15:43:26 +01:00
0af3b3a26a
fix: Parse tofu env vars in step instead of job
All checks were successful
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Successful in 12s
2025-11-29 12:29:30 +01:00
cadba057d2
chore: Return checksum result 2025-11-29 12:29:13 +01:00
696e4e6a92
chore: Remove then statement
All checks were successful
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Successful in 15s
2025-11-29 12:25:45 +01:00
d44e242de3
fix: Use printf
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 5s
2025-11-29 12:25:24 +01:00
9ae4963476
fix: Unquote pipe command
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 5s
2025-11-29 12:22:26 +01:00
735b51637c
fix: Output download to file
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 6s
2025-11-29 12:20:13 +01:00
4bcf2a32e5
fix: Correctly parse variables
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 9s
2025-11-29 12:16:53 +01:00
fd171f42d0
fix: Use existing workingdir
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 5s
2025-11-29 12:15:55 +01:00
d7bf58060e
chore: Manually install OpenTofu
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 5s
2025-11-29 12:15:12 +01:00
4a98acc768
chore: Use opentofu container image
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 10s
2025-11-29 11:47:07 +01:00
20968206f6
chore: Parse secrets in env vars
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Has been cancelled
2025-11-29 11:22:33 +01:00
470b6dcb8e
chore: Set working directory
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 7s
2025-11-29 11:15:28 +01:00
40fcbe3486
fix: Connect to wireguard on host
All checks were successful
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Successful in 9s
2025-11-29 10:11:44 +01:00
95b8634b00
chore: Install dependency
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 1m32s
2025-11-28 21:26:32 +01:00
b77a24f50c
fix: Update file location
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 1m36s
2025-11-28 21:19:36 +01:00
5cb946a1b2
fix: Confirm installation
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 1m32s
2025-11-28 21:17:20 +01:00
530b5dae10
fix: Remove resolvconf install
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 12s
2025-11-28 21:16:03 +01:00
a660769001
chore: Hardcode lsb_release
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 13s
2025-11-28 21:14:20 +01:00
9da7f3f54d
chore: Add missing apt repository
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 9s
2025-11-28 21:13:42 +01:00
7bd2e066fd
debug: List apt repositories
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 8s
2025-11-28 21:06:20 +01:00
ae0b2e91f2
fix: Renove resolvconf installation
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 7s
2025-11-28 20:57:20 +01:00
1b864a209c
fix: Don't use sudo
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 7s
2025-11-28 20:55:14 +01:00
5d8d471dcd
feat: Set up wireguard connection
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 10s
2025-11-28 20:53:52 +01:00
1f6970c321
chore: Add tofu plan workflow
All checks were successful
tofu plan / opentofu (pull_request) Successful in 10s
2025-11-28 15:34:52 +01:00

View file

@ -0,0 +1,77 @@
---
name: tofu plan k8s-wheatley
on:
workflow_dispatch:
workflow_call:
pull_request:
branches:
- main
# paths:
# - pve01.wheatley.in/k8s-wheatley/**
env:
TOFU_VERSION: 1.10.7
TOFU_CHECKSUM: 765a7374aeafcad15fe8da5359de76ce11ba0fd3cb6c2dc85d3b390e6362cae5
TOFU_ARCHIVE: tofu_${{ env.TOFU_VERSION }}_linux_amd64.tar.gz
TOFU_DIR: pve01.wheatley.in/k8s-wheatley
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 }}
jobs:
tofu-plan-k8s-wheatley:
runs-on: docker
steps:
- uses: actions/checkout@v4
- name: Download OpenTofu
id: download
run: |
set -eo pipefail
echo "Downloading OpenTofu..."
curl -L https://github.com/opentofu/opentofu/releases/download/v${{ env.TOFU_VERSION }}/${{ env.TOFU_ARCHIVE }} -o ${{ env.TOFU_ARCHIVE }}
echo "Downloaded OpenTofu ✅"
echo "Verifying checksum..."
printf "%s %s" "${{ env.TOFU_CHECKSUM }}" "${{ env.TOFU_ARCHIVE }}" | sha256sum --check --status
echo "Checksum ok ✅"
working-directory: /tmp
- name: Install OpenTofu
run: |
echo "Untarring..."
tar -xzf ${{ env.TOFU_ARCHIVE }}
echo "Untarring ✅"
echo "Installing OpenTofu Binary..."
mv tofu /usr/local/bin/tofu
chmod +x /usr/local/bin/tofu
echo "Installed Open Tofu ✅ Installed version:"
tofu version
working-directory: /tmp
- name: OpenTofu fmt
id: fmt
run: tofu fmt -check
working-directory: ${{ env.TOFU_DIR }}
continue-on-error: true
- name: OpenTofu Init
id: init
run: tofu init
working-directory: ${{ env.TOFU_DIR }}
- name: OpenTofu Validate
id: validate
run: tofu validate -no-color
working-directory: ${{ env.TOFU_DIR }}
- name: OpenTofu Plan
id: plan
env:
TF_VAR_PROXMOX_API_TOKEN: ${{ secrets.PROXMOX_API_TOKEN }}
TF_VAR_PROXMOX_ENDPOINT: ${{ secrets.PROXMOX_ENDPOINT }}
run: |
echo "Proxmox endpoint: ${{ env.TF_VAR_PROXMOX_ENDPOINT}}"
tofu plan -no-color
working-directory: ${{ env.TOFU_DIR }}
continue-on-error: true