From 5d8d471dcd0ec70c5cb2e3ae1d4e3c1979c407a9 Mon Sep 17 00:00:00 2001 From: pgijsbertsen <117165507+pgijsbertsen@users.noreply.github.com> Date: Fri, 28 Nov 2025 20:53:52 +0100 Subject: [PATCH] feat: Set up wireguard connection --- ...u-plan.yaml => tofu-plan-k8s-wheatley.yaml} | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) rename .forgejo/workflows/{tofu-plan.yaml => tofu-plan-k8s-wheatley.yaml} (53%) diff --git a/.forgejo/workflows/tofu-plan.yaml b/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml similarity index 53% rename from .forgejo/workflows/tofu-plan.yaml rename to .forgejo/workflows/tofu-plan-k8s-wheatley.yaml index e7fa644..63c40b3 100644 --- a/.forgejo/workflows/tofu-plan.yaml +++ b/.forgejo/workflows/tofu-plan-k8s-wheatley.yaml @@ -1,5 +1,5 @@ --- -name: tofu plan +name: tofu plan k8s-wheatley on: workflow_dispatch: workflow_call: @@ -10,12 +10,26 @@ on: # - pve01.wheatley.in/k8s-whealtey/** jobs: - opentofu: + tofu-plan-k8s-wheatley: runs-on: docker steps: - uses: actions/checkout@v4 - uses: opentofu/setup-opentofu@v1 + - name: Setup Wireguard + run: | + echo "Installing Wireguard..." + sudo apt install resolvconf + sudo apt install wireguard + echo "Installing Wireguard ✅" + echo "Configuring Wireguard..." + echo "${{ secrets.WG_CONFIG }}" > /tmp/wg0.conf + sudo chmod 600 wg0.conf + echo "Configuring Wireguard ✅" + echo "Starting Wireguard..." + sudo wg-quick up /tmp/wg0.conf + echo "Started Wireguard ✅" + - name: OpenTofu fmt id: fmt run: tofu fmt -check