infrastructure/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml
pgijsbertsen 530b5dae10
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 12s
fix: Remove resolvconf install
2025-11-28 21:16:03 +01:00

54 lines
1.3 KiB
YAML

---
name: tofu plan k8s-wheatley
on:
workflow_dispatch:
workflow_call:
pull_request:
branches:
- main
# paths:
# - pve01.wheatley.in/k8s-whealtey/**
jobs:
tofu-plan-k8s-wheatley:
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: opentofu/setup-opentofu@v1
- name: Setup apt repository
run: |
echo "deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware" | tee -a /etc/apt/sources.list
apt update
- name: Setup Wireguard
run: |
apt-cache policy
echo "Installing Wireguard..."
apt install wireguard
echo "Installing Wireguard ✅"
echo "Configuring Wireguard..."
echo "${{ secrets.WG_CONFIG }}" > /tmp/wg0.conf
chmod 600 wg0.conf
echo "Configuring Wireguard ✅"
echo "Starting Wireguard..."
wg-quick up /tmp/wg0.conf
echo "Started Wireguard ✅"
- name: OpenTofu fmt
id: fmt
run: tofu fmt -check
continue-on-error: true
- name: OpenTofu Init
id: init
run: tofu init
- name: OpenTofu Validate
id: validate
run: tofu validate -no-color
- name: OpenTofu Plan
id: plan
run: tofu plan -no-color
continue-on-error: true