chore: Add tofu workflows #1

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

View file

@ -16,25 +16,6 @@ jobs:
- 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 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
id: fmt
run: tofu fmt -check