Skip to content

Commit 0224ac0

Browse files
stackptrclaude
andcommitted
fix: set NIX_SSHOPTS for deploy-rs SSH authentication
deploy-rs uses nix copy which doesn't read ~/.ssh/config. Set NIX_SSHOPTS to pass the deploy key and IdentitiesOnly directly to the SSH invocations. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2ce926e commit 0224ac0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ jobs:
6262
EOF
6363
6464
- name: Deploy to ${{ matrix.host }}
65+
env:
66+
NIX_SSHOPTS: "-i ~/.ssh/deploy_key -o IdentitiesOnly=yes -o StrictHostKeyChecking=accept-new"
6567
run: |
6668
nix run --inputs-from . deploy-rs -- \
6769
.#${{ matrix.host }} \

0 commit comments

Comments
 (0)