Commit 879ef3991c

879ef3991cf64ce2d6de3f6c98404174fda84bb3

parent: 25279b4b49

Verified · cmc ci/build: success ci/test: failure

cmc <hello@cleberg.net> · 2026-09-29 02:29 UTC

wiki: attach the scratch runner from a machine with an admin identity

Ref #287

Layout: unified · split

.gitbay/wiki/Admin.org +5 −1
@@ -934,11 +934,15 @@ other repositories' builds queue until =-repos= is removed again, which
934934is a pause, not an outage.
935935
936936#+begin_src sh
937# on a machine with an admin gitbay identity (root on the host has none),
938# with the runner's public key copied from the host:
937939gitbay repo create cmc/runner-scratch # then push a .gitbay/ci.yml naming the image
940scp -P 2222 root@<host>:/var/lib/gitbay-runner/.ssh/id_ed25519.pub runner.pub
941gitbay repo runner add cmc/runner-scratch < runner.pub
938942# on the host:
939gitbay repo runner add cmc/runner-scratch < /var/lib/gitbay-runner/.ssh/id_ed25519.pub
940943sed -i 's#^ExecStart=/usr/local/bin/gitbay-runner #&-repos cmc/runner-scratch #' /etc/systemd/system/gitbay-runner.service.d/override.conf
941944systemctl daemon-reload && systemctl restart gitbay-runner
945# back on the admin machine:
942946gitbay build log cmc/runner-scratch 1 # green: remove -repos, redeploy, delete the scratch repository
943947#+end_src
944948