fix: Don't use sudo
Some checks failed
tofu plan k8s-wheatley / tofu-plan-k8s-wheatley (pull_request) Failing after 7s

This commit is contained in:
Peter 2025-11-28 20:55:14 +01:00
parent 5d8d471dcd
commit 1b864a209c
Signed by: Peter
SSH key fingerprint: SHA256:B5tYaxBExaDm74r1px9iVeZ6F/ZDiyiy9SbBqfZYrvg

View file

@ -19,15 +19,15 @@ jobs:
- name: Setup Wireguard - name: Setup Wireguard
run: | run: |
echo "Installing Wireguard..." echo "Installing Wireguard..."
sudo apt install resolvconf apt install resolvconf
sudo apt install wireguard apt install wireguard
echo "Installing Wireguard ✅" echo "Installing Wireguard ✅"
echo "Configuring Wireguard..." echo "Configuring Wireguard..."
echo "${{ secrets.WG_CONFIG }}" > /tmp/wg0.conf echo "${{ secrets.WG_CONFIG }}" > /tmp/wg0.conf
sudo chmod 600 wg0.conf chmod 600 wg0.conf
echo "Configuring Wireguard ✅" echo "Configuring Wireguard ✅"
echo "Starting Wireguard..." echo "Starting Wireguard..."
sudo wg-quick up /tmp/wg0.conf wg-quick up /tmp/wg0.conf
echo "Started Wireguard ✅" echo "Started Wireguard ✅"
- name: OpenTofu fmt - name: OpenTofu fmt