Commit d111cdeaac

d111cdeaac3330935269605c00e46f1b18e35a30

parent: 641324260b

Verified · cmc ci/pages: success ci/test: success

cmc <hello@cleberg.net> · 2026-11-01 05:44 UTC

Run release ssh calls through a bot_ssh function

Ref #8

Layout: unified · split

.gitbay/bot-ssh.sh +1
@@ -13,4 +13,5 @@
13 "$PWD/.bot_key" "$PWD/.known_hosts" >"$PWD/.ssh_config" 13 "$PWD/.bot_key" "$PWD/.known_hosts" >"$PWD/.ssh_config"
14) 14)
15SSH="ssh -F $PWD/.ssh_config" 15SSH="ssh -F $PWD/.ssh_config"
16bot_ssh() { ssh -F "$PWD/.ssh_config" "$@"; }
16export GIT_SSH_COMMAND="$SSH" 17export GIT_SSH_COMMAND="$SSH"
.gitbay/release.sh +2 −2
@@ -50,10 +50,10 @@ done
50# Notes come from the annotated tag, so the person cutting the release writes 50# Notes come from the annotated tag, so the person cutting the release writes
51# them at the moment they decide to cut it (`git tag -a "$tag" -F notes.md`). 51# them at the moment they decide to cut it (`git tag -a "$tag" -F notes.md`).
52git tag -l --format='%(contents)' "$tag" | 52git tag -l --format='%(contents)' "$tag" |
53 $SSH "$GITBAY_SSH" release create "$repo" "$tag" --title "${tag#v}" --file - 53 bot_ssh "$GITBAY_SSH" release create "$repo" "$tag" --title "${tag#v}" --file -
54 54
55for f in "$dist"/*; do 55for f in "$dist"/*; do
56 $SSH "$GITBAY_SSH" release asset add "$repo" "$tag" "$(basename "$f")" <"$f" 56 bot_ssh "$GITBAY_SSH" release asset add "$repo" "$tag" "$(basename "$f")" <"$f"
57 echo "attached $(basename "$f")" 57 echo "attached $(basename "$f")"
58done 58done
59 59