From 5078324c732fe5fb6da7d0bd0f6204e267e6a900 Mon Sep 17 00:00:00 2001 From: Khushmeet Singh Date: Fri, 15 Sep 2023 04:12:24 -0700 Subject: [PATCH] Added tailscale steps to connect to server --- .github/workflows/hetzner_create.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/hetzner_create.yml b/.github/workflows/hetzner_create.yml index d4345fa..737dd85 100644 --- a/.github/workflows/hetzner_create.yml +++ b/.github/workflows/hetzner_create.yml @@ -56,6 +56,31 @@ jobs: sudo apt-get install -y ansible python -m pip install --upgrade pip + - name: Tailscale + uses: tailscale/github-action@v1 + with: + authkey: ${{ secrets.TAILSCALE_EPHEMERAL_KEY }} + + - name: Check out repository code + uses: actions/checkout@v3 + + - name: Configure SSH + run: | + mkdir -p ~/.ssh/ + echo "$SSH_KEY" > ~/.ssh/server.key + chmod 600 ~/.ssh/server.key + cat >>~/.ssh/config <