Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021# shellcheck shell=bash# Sourced by the spindle jobs: SSH + git identity for the bot account.# Sets PUSH_URL. Same knot/port convention as nixos-config's update.yml.
mkdir -p ~/.sshchmod 700 ~/.sshprintf '%s\n' "$BOT_SSH_KEY" > ~/.ssh/id_ed25519chmod 600 ~/.ssh/id_ed25519
KNOT="${TANGLED_REPO_KNOT:-tngl.poacher.dev}"KNOT_SSH_PORT=2222ssh-keyscan -p "$KNOT_SSH_PORT" -H "$KNOT" >> ~/.ssh/known_hosts 2>/dev/null
PUSH_URL="$(printf '%s' "$TANGLED_REPO_URL" | sed -E "s#^https?://([^/]+)#ssh://git@\1:$KNOT_SSH_PORT#")"export PUSH_URL
git config user.name "$BOT_HANDLE"git config user.email "$BOT_EMAIL"git config gpg.format sshgit config user.signingkey ~/.ssh/id_ed25519