summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-05-18 14:43:33 -0400
committerTavian Barnes <tavianator@tavianator.com>2021-05-18 14:43:33 -0400
commite5dbcc35db997ef431a2da90ea1ab7777c29d7d6 (patch)
tree3266732565571e4ebe4c674f958ffb3edb6de5a2
parent48c02b1bbd5c14879fb625ed859094f20043a782 (diff)
downloadbfs-e5dbcc35db997ef431a2da90ea1ab7777c29d7d6.tar.xz
ci/freebsd: Use `tailscale ip` instead of hardcoding it
-rw-r--r--.github/workflows/freebsd.yml7
1 files changed, 4 insertions, 3 deletions
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'