From e5dbcc35db997ef431a2da90ea1ab7777c29d7d6 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 18 May 2021 14:43:33 -0400 Subject: ci/freebsd: Use `tailscale ip` instead of hardcoding it --- .github/workflows/freebsd.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.github') diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml index a60465f..1765e30 100644 --- a/.github/workflows/freebsd.yml +++ b/.github/workflows/freebsd.yml @@ -34,9 +34,10 @@ jobs: mkdir ~/.ssh printf '%s' "$SSH_KEY" >~/.ssh/github-actions chmod 0600 ~/.ssh/github-actions - printf 'Host fd7a:115c:a1e0:ab12:4843:cd96:6265:b302\n\tStrictHostKeyChecking=accept-new\n\tUser github\n\tIdentityFile ~/.ssh/github-actions\n' >~/.ssh/config + printf 'Host %s\n\tStrictHostKeyChecking=accept-new\n\tUser github\n\tIdentityFile ~/.ssh/github-actions\n' "$(tailscale ip -6 muon)" >~/.ssh/config - name: Run tests run: | - rsync -rl --delete . '[fd7a:115c:a1e0:ab12:4843:cd96:6265:b302]':bfs - ssh fd7a:115c:a1e0:ab12:4843:cd96:6265:b302 'gmake -C bfs -j$(sysctl -n hw.ncpu) distcheck' + muon=$(tailscale ip -6 muon) + rsync -rl --delete . "[$muon]:bfs" + ssh "$muon" 'gmake -C bfs -j$(sysctl -n hw.ncpu) distcheck' -- cgit v1.2.3