fix: deploy neuro workflow

This commit is contained in:
2026-09-09 11:23:58 +00:00
parent 059e2a8533
commit 68a4dd1900
+10 -10
View File
@@ -49,16 +49,16 @@ jobs:
printf '%s\n' "$NEURO_SSH_PRIVATE_KEY" > "$ssh_home/.ssh/id_ed25519" printf '%s\n' "$NEURO_SSH_PRIVATE_KEY" > "$ssh_home/.ssh/id_ed25519"
printf '%s\n' "$NEURO_SSH_KNOWN_HOSTS" > "$ssh_home/.ssh/known_hosts" printf '%s\n' "$NEURO_SSH_KNOWN_HOSTS" > "$ssh_home/.ssh/known_hosts"
chmod 600 "$ssh_home/.ssh/id_ed25519" "$ssh_home/.ssh/known_hosts" chmod 600 "$ssh_home/.ssh/id_ed25519" "$ssh_home/.ssh/known_hosts"
cat > "$ssh_home/.ssh/config" <<EOF printf '%s\n' \
Host neuro 'Host neuro' \
HostName 95.31.254.84 ' HostName 95.31.254.84' \
User root ' User root' \
Port 34457 ' Port 34457' \
IdentityFile $ssh_home/.ssh/id_ed25519 " IdentityFile $ssh_home/.ssh/id_ed25519" \
IdentitiesOnly yes ' IdentitiesOnly yes' \
StrictHostKeyChecking yes ' StrictHostKeyChecking yes' \
UserKnownHostsFile $ssh_home/.ssh/known_hosts " UserKnownHostsFile $ssh_home/.ssh/known_hosts" \
EOF > "$ssh_home/.ssh/config"
chmod 600 "$ssh_home/.ssh/config" chmod 600 "$ssh_home/.ssh/config"
export HOME="$ssh_home" export HOME="$ssh_home"
export NIX_SSHOPTS="-o BatchMode=yes -o StrictHostKeyChecking=yes -o UserKnownHostsFile=$HOME/.ssh/known_hosts -o IdentitiesOnly=yes -i $HOME/.ssh/id_ed25519" export NIX_SSHOPTS="-o BatchMode=yes -o StrictHostKeyChecking=yes -o UserKnownHostsFile=$HOME/.ssh/known_hosts -o IdentitiesOnly=yes -i $HOME/.ssh/id_ed25519"