summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-03-28 18:26:54 -0400
committerTavian Barnes <tavianator@tavianator.com>2021-03-28 18:43:37 -0400
commit733db03f5b507af357ad1c5650a9c6ab48d8e323 (patch)
treeb9357e143d15171783f0d236c67759da3a90bf9f /.github/workflows
parent1e5e563c0b73f0dfa68d7de9efe2248209c70b2d (diff)
downloadbfs-733db03f5b507af357ad1c5650a9c6ab48d8e323.tar.xz
ci/freebsd: Set the hostname explicitly
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/freebsd.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml
index 0187096..945be19 100644
--- a/.github/workflows/freebsd.yml
+++ b/.github/workflows/freebsd.yml
@@ -15,12 +15,13 @@ jobs:
TAILSCALE_KEY: ${{ secrets.TAILSCALE_KEY }}
TAILSCALE_MACHINE_KEY: ${{ secrets.TAILSCALE_MACHINE_KEY }}
run: |
+ sudo mkdir /var/lib/tailscale
+ printf '%s' "$TAILSCALE_MACHINE_KEY" | sudo tee /var/lib/tailscale/tailscaled.state >/dev/null
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/focal.gpg | sudo apt-key add -
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/focal.list | sudo tee /etc/apt/sources.list.d/tailscale.list
sudo apt-get update -y
sudo apt-get install -y tailscale
- printf '%s' "TAILSCALE_MACHINE_KEY" | sudo tee /var/lib/tailscale/tailscaled.state >/dev/null
- sudo tailscale up --authkey="$TAILSCALE_KEY"
+ sudo tailscale up --hostname=gh-runner --authkey="$TAILSCALE_KEY"
mkdir ~/.ssh
printf '%s' "$SSH_KEY" >~/.ssh/github-actions
chmod 0600 ~/.ssh/github-actions