chore: Add tofu workflows #1

Open
Peter wants to merge 25 commits from pgi-add-workflows into main
Showing only changes of commit 1b864a209c - Show all commits

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