Ask for the registration and capacity at first boot
gitea-runner-setup asks on the console for the number of parallel jobs, the Gitea URL and a registration token, and registers the runner. It runs until the runner is registered, and logins wait for it, as for systemd-firstboot. The capacity goes to a drop-in of gitea-runner.service, which passes it to the config as CAPACITY, so the config stays read-only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
094ee671d7
commit
018f15172d
7 files changed
+59
-9
No files matched your search
@@ -8,6 +8,8 @@ runner:
|
||||
# file is where `gitea-runner register` keeps the registration, wherever it
|
||||
# runs. gitea-runner.path starts the runner once it is there.
|
||||
file: /var/lib/gitea-runner/.runner
|
||||
# capacity is the number of parallel jobs, set by gitea-runner.service.
|
||||
capacity: ${CAPACITY}
|
||||
# shutdown_timeout lets running jobs finish when the runner stops, as it
|
||||
# does before an update reboots the machine.
|
||||
shutdown_timeout: 1h
|
||||
|
||||
Reference in new issue
Block a user