fix deploy-rs: set sshUser=root explicitly, fix host key verification
Some checks failed
Deploy / flake-check (push) Successful in 35s
Deploy / deploy-cryodev-main (push) Has been cancelled
Deploy / create-release (push) Has been cancelled
Deploy / build-pi-images (cryodev-pi) (push) Has been cancelled

deploy-rs was using 'gitea-runner' as ssh_user because the runner
process runs as that user. Set sshUser=root at the node level.
Also add StrictHostKeyChecking=accept-new as fallback for host key.
This commit is contained in:
steffen 2026-03-14 14:26:51 +01:00
parent 5607cad78f
commit 8b467f071f
2 changed files with 3 additions and 1 deletions

View file

@ -30,9 +30,10 @@ jobs:
echo "$DEPLOY_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -p 2299 -H cryodev.xyz >> ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
- name: Deploy with deploy-rs
run: nix run github:serokell/deploy-rs -- -s .#cryodev-main
run: NIX_SSHOPTS="-p 2299 -o StrictHostKeyChecking=accept-new" nix run github:serokell/deploy-rs -- -s .#cryodev-main
build-pi-images:
needs: flake-check

View file

@ -123,6 +123,7 @@
nodes = {
cryodev-main = {
hostname = constants.domain;
sshUser = "root";
sshOpts = [
"-p"
"2299"