Commit 9db5e874e1
Verified · cmc ci/build: success ci/test: success
deploy/Containerfile.ci +7 −3
| @@ -2,10 +2,14 @@ | ||
| 2 | 2 | # (#144). Without it a job runs in the runner's default image, which has |
| 3 | 3 | # no toolchain, and the suite's prerequisite check fails immediately. |
| 4 | 4 | # |
| 5 | # Build it on the runner host, where podman keeps it: | |
| 5 | # Build it on the runner host, where podman keeps it. The file is staged in | |
| 6 | # the runner user's home first: a login shell under su cannot read root's | |
| 7 | # stdin, and root's session does not share /tmp with it. | |
| 6 | 8 | # |
| 7 | # ssh -p 2222 root@bay1 'su - ci-runner -s /bin/sh -c \ | |
| 8 | # "podman build -t localhost/gitbay-ci:2 -f - ." ' < deploy/Containerfile.ci | |
| 9 | # scp -P 2222 deploy/Containerfile.ci root@gitbay.org:/var/lib/gitbay-runner/gitbay-ci.Containerfile | |
| 10 | # ssh -p 2222 root@gitbay.org 'chown ci-runner /var/lib/gitbay-runner/gitbay-ci.Containerfile \ | |
| 11 | # && su - ci-runner -s /bin/sh -c "podman build -t localhost/gitbay-ci:2 -f gitbay-ci.Containerfile ." \ | |
| 12 | # && rm /var/lib/gitbay-runner/gitbay-ci.Containerfile' | |
| 9 | 13 | # |
| 10 | 14 | # Tagged, not :latest, so a change to this file is a deliberate bump in |
| 11 | 15 | # .gitbay/ci.yml rather than a silent change under a running branch. |