krz/orgo

Lightning fast org-mode static site generator. fast go org-mode static-site-generator

Commit 5448d39270

5448d39270e4b9104a4ea08a52ec022bf852f083

parent: 6146bc1a9f

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

cmc <hello@cleberg.net> · 2026-08-30 17:07 UTC

Reach the forge on the host the runner cloned from

Steps do not inherit the runner's GIT_SSH_COMMAND, so a hardcoded gitbay.org
fails host key verification as ci-runner. Both scripts now derive the host from
origin.

Layout: unified · split

.gitbay/pages.sh +1 −1
@@ -31,6 +31,6 @@ git -C "$work" -c user.name=gitbay-ci -c user.email=ci@orgo.krz.sh commit -q \
31 -m "Publish the documentation site 31 -m "Publish the documentation site
32 32
33Built from ${GITBAY_SHA} by \`orgo build docs -o _site --strict\`." 33Built from ${GITBAY_SHA} by \`orgo build docs -o _site --strict\`."
34git -C "$work" push -q --force "ssh://git@gitbay.org/${GITBAY_REPO}.git" HEAD:refs/heads/pages 34git -C "$work" push -q --force "$(git remote get-url origin)" HEAD:refs/heads/pages
35 35
36echo "published the site from ${GITBAY_SHA} to the pages branch" 36echo "published the site from ${GITBAY_SHA} to the pages branch"
.gitbay/release.sh +6 −2
@@ -26,6 +26,10 @@ if [ "$tag" != "v$version" ]; then
26 exit 1 26 exit 1
27fi 27fi
28 28
29# Reach the forge on whatever host the runner cloned from, rather than a name it
30# may not have in known_hosts.
31host=$(git remote get-url origin | sed 's#.*://[^@]*@##; s#[:/].*##')
32
29dist=dist 33dist=dist
30mkdir -p "$dist" 34mkdir -p "$dist"
31 35
@@ -48,10 +52,10 @@ done
48# Notes come from the annotated tag, so the person cutting the release writes 52# Notes come from the annotated tag, so the person cutting the release writes
49# them at the moment they decide to cut it (`git tag -a "$tag" -F notes.md`). 53# them at the moment they decide to cut it (`git tag -a "$tag" -F notes.md`).
50git tag -l --format='%(contents)' "$tag" | 54git tag -l --format='%(contents)' "$tag" |
51 ssh git@gitbay.org release create "$repo" "$tag" --title "${tag#v}" --file - 55 ssh "git@$host" release create "$repo" "$tag" --title "${tag#v}" --file -
52 56
53for f in "$dist"/*; do 57for f in "$dist"/*; do
54 ssh git@gitbay.org release asset add "$repo" "$tag" "$(basename "$f")" <"$f" 58 ssh "git@$host" release asset add "$repo" "$tag" "$(basename "$f")" <"$f"
55 echo "attached $(basename "$f")" 59 echo "attached $(basename "$f")"
56done 60done
57 61