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 \
3131 -m "Publish the documentation site
3232
3333Built 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
3535
3636echo "published the site from ${GITBAY_SHA} to the pages branch"
.gitbay/release.sh +6 −2
@@ -26,6 +26,10 @@ if [ "$tag" != "v$version" ]; then
2626 exit 1
2727fi
2828
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
2933dist=dist
3034mkdir -p "$dist"
3135
@@ -48,10 +52,10 @@ done
4852# Notes come from the annotated tag, so the person cutting the release writes
4953# them at the moment they decide to cut it (`git tag -a "$tag" -F notes.md`).
5054git 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 -
5256
5357for 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"
5559 echo "attached $(basename "$f")"
5660done
5761