fix: Connect to wireguard on host
All checks were successful
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Successful in 9s

This commit is contained in:
Peter 2025-11-29 10:11:44 +01:00
parent 95b8634b00
commit 40fcbe3486
Signed by: Peter
SSH key fingerprint: SHA256:B5tYaxBExaDm74r1px9iVeZ6F/ZDiyiy9SbBqfZYrvg

View file

@ -16,25 +16,6 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: opentofu/setup-opentofu@v1 - 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 iproute2 wireguard -y
echo "Installing Wireguard ✅"
echo "Configuring Wireguard..."
echo "${{ secrets.WG_CONFIG }}" > /tmp/wg0.conf
chmod 600 /tmp/wg0.conf
echo "Configuring Wireguard ✅"
echo "Starting Wireguard..."
wg-quick up /tmp/wg0.conf
echo "Started Wireguard ✅"
- name: OpenTofu fmt - name: OpenTofu fmt
id: fmt id: fmt
run: tofu fmt -check run: tofu fmt -check