chore: Add tofu workflows #1
1 changed files with 0 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue