From 68a4dd19002e784b1a932661d5d0e6cb4beaebd1 Mon Sep 17 00:00:00 2001 From: yukkop Date: Wed, 9 Sep 2026 11:23:58 +0000 Subject: [PATCH] fix: deploy neuro workflow --- .gitea/workflows/deploy-neuro.yaml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/deploy-neuro.yaml b/.gitea/workflows/deploy-neuro.yaml index 06c93f57..2ed69d07 100644 --- a/.gitea/workflows/deploy-neuro.yaml +++ b/.gitea/workflows/deploy-neuro.yaml @@ -46,21 +46,21 @@ jobs: ssh_home=$(mktemp -d) trap 'rm -rf "$ssh_home"' EXIT install -d -m 700 "$ssh_home/.ssh" - printf '%s\n' "$NEURO_SSH_PRIVATE_KEY" > "$ssh_home/.ssh/id_ed25519" - printf '%s\n' "$NEURO_SSH_KNOWN_HOSTS" > "$ssh_home/.ssh/known_hosts" - chmod 600 "$ssh_home/.ssh/id_ed25519" "$ssh_home/.ssh/known_hosts" - cat > "$ssh_home/.ssh/config" < "$ssh_home/.ssh/id_ed25519" + printf '%s\n' "$NEURO_SSH_KNOWN_HOSTS" > "$ssh_home/.ssh/known_hosts" + chmod 600 "$ssh_home/.ssh/id_ed25519" "$ssh_home/.ssh/known_hosts" + printf '%s\n' \ + 'Host neuro' \ + ' HostName 95.31.254.84' \ + ' User root' \ + ' Port 34457' \ + " IdentityFile $ssh_home/.ssh/id_ed25519" \ + ' IdentitiesOnly yes' \ + ' StrictHostKeyChecking yes' \ + " UserKnownHostsFile $ssh_home/.ssh/known_hosts" \ + > "$ssh_home/.ssh/config" + chmod 600 "$ssh_home/.ssh/config" + 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" ssh -o BatchMode=yes -o ConnectTimeout=10 \ -o StrictHostKeyChecking=yes \