This commit is contained in:
@@ -49,6 +49,17 @@ 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
|
||||||
|
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
|
||||||
|
EOF
|
||||||
|
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"
|
||||||
ssh -o BatchMode=yes -o ConnectTimeout=10 \
|
ssh -o BatchMode=yes -o ConnectTimeout=10 \
|
||||||
|
|||||||
@@ -318,6 +318,7 @@ case "$label" in
|
|||||||
usermod --append --groups nixbld "nixbld\\\$nixbld_user"
|
usermod --append --groups nixbld "nixbld\\\$nixbld_user"
|
||||||
done
|
done
|
||||||
/tmp/nix-$GCR_NIX_VERSION-\\\$nix_arch/install --no-daemon
|
/tmp/nix-$GCR_NIX_VERSION-\\\$nix_arch/install --no-daemon
|
||||||
|
ln -sf /root/.nix-profile/bin/nix /usr/local/bin/nix
|
||||||
rm -rf /tmp/nix*
|
rm -rf /tmp/nix*
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user