Commit 879ef3991c
Verified · cmc ci/build: success ci/test: failure
Layout: unified · split
.gitbay/wiki/Admin.org +5 −1
| @@ -934,11 +934,15 @@ other repositories' builds queue until =-repos= is removed again, which | |||
| 934 | is a pause, not an outage. | 934 | is a pause, not an outage. |
| 935 | 935 | ||
| 936 | #+begin_src sh | 936 | #+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: | ||
| 937 | gitbay repo create cmc/runner-scratch # then push a .gitbay/ci.yml naming the image | 939 | gitbay repo create cmc/runner-scratch # then push a .gitbay/ci.yml naming the image |
| 940 | scp -P 2222 root@<host>:/var/lib/gitbay-runner/.ssh/id_ed25519.pub runner.pub | ||
| 941 | gitbay repo runner add cmc/runner-scratch < runner.pub | ||
| 938 | # on the host: | 942 | # on the host: |
| 939 | gitbay repo runner add cmc/runner-scratch < /var/lib/gitbay-runner/.ssh/id_ed25519.pub | ||
| 940 | sed -i 's#^ExecStart=/usr/local/bin/gitbay-runner #&-repos cmc/runner-scratch #' /etc/systemd/system/gitbay-runner.service.d/override.conf | 943 | sed -i 's#^ExecStart=/usr/local/bin/gitbay-runner #&-repos cmc/runner-scratch #' /etc/systemd/system/gitbay-runner.service.d/override.conf |
| 941 | systemctl daemon-reload && systemctl restart gitbay-runner | 944 | systemctl daemon-reload && systemctl restart gitbay-runner |
| 945 | # back on the admin machine: | ||
| 942 | gitbay build log cmc/runner-scratch 1 # green: remove -repos, redeploy, delete the scratch repository | 946 | gitbay build log cmc/runner-scratch 1 # green: remove -repos, redeploy, delete the scratch repository |
| 943 | #+end_src | 947 | #+end_src |
| 944 | 948 | ||