]> Sergey Matveev's repositories - bfs.git/commitdiff
ci/freebsd: Use tailscale ssh
authorTavian Barnes <tavianator@tavianator.com>
Tue, 3 Oct 2023 14:17:12 +0000 (10:17 -0400)
committerTavian Barnes <tavianator@tavianator.com>
Tue, 3 Oct 2023 15:27:56 +0000 (11:27 -0400)
.github/workflows/ci.yml

index db7bacadf214a8bb4b1efa82f613bdcb96330912..e7810551d2a1fbc59452ac390dada98e8a7c4b16 100644 (file)
@@ -71,17 +71,10 @@ jobs:
           oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
           tags: tag:ci
 
-      - name: Configure SSH
-        env:
-          SSH_KEY: ${{ secrets.SSH_KEY }}
-        run: |
-          mkdir ~/.ssh
-          printf '%s' "$SSH_KEY" >~/.ssh/github-actions
-          chmod 0600 ~/.ssh/github-actions
-          printf 'Host %s\n\tStrictHostKeyChecking=accept-new\n\tUser github\n\tIdentityFile ~/.ssh/github-actions\n' "$(tailscale ip -6 spurion)" >~/.ssh/config
-
       - name: Run tests
         run: |
           spurion=$(tailscale ip -6 spurion)
+          mkdir ~/.ssh
+          printf 'Host %s\n\tStrictHostKeyChecking=accept-new\n\tUser github\n' "$spurion" >~/.ssh/config
           rsync -rl --delete . "[$spurion]:bfs"
-          ssh "$spurion" 'gmake -C bfs -j$(sysctl -n hw.ncpu) distcheck CC=clang16'
+          ssh "$spurion" '. ~/.ssh/rc; gmake -C bfs -j$(sysctl -n hw.ncpu) distcheck CC=clang16'