From f095c08c7d1e4b6d58f0626c67d956b5b78e2264 Mon Sep 17 00:00:00 2001 From: albert Date: Thu, 7 Nov 2024 03:02:01 +0100 Subject: [PATCH] Update workflows --- .forgejo/workflows/deploy-rs.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/deploy-rs.yml b/.forgejo/workflows/deploy-rs.yml index 11749c57..f21869af 100644 --- a/.forgejo/workflows/deploy-rs.yml +++ b/.forgejo/workflows/deploy-rs.yml @@ -40,6 +40,7 @@ jobs: - name: "Setup: Tailscale Repo" run: | + set -x mkdir -p --mode=0755 /usr/share/keyrings curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/lunar.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/lunar.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list @@ -48,6 +49,7 @@ jobs: - name: "Setup: SSH" run: | + set -x rm -rf /root/.ssh mkdir /root/.ssh echo "${{ secrets.SSH_PUBLIC_KEY }}" > /root/.ssh/id_ed25519.pub @@ -58,13 +60,9 @@ jobs: - name: "Setup: Headscale Network" run: | - echo "tailscaled --cleanup" + set -x sudo tailscaled --cleanup - echo "" - echo "tailscaled --state=mem 2> ~/tailscaled.log &" sudo tailscaled --state=mem: 2> ~/tailscaled.log & - echo "" - echo "tailscale up" sudo tailscale up \ --login-server=https://headscale.sysctl.io \ --accept-routes \