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
@@ -23,14 +23,12 @@ image.
|
||||
Download [the disk image](https://git.plabble.org/api/packages/Job79/generic/runneros/latest/runneros.qcow2),
|
||||
resize it to the disk size you want and boot it with UEFI and a TPM. At first
|
||||
boot, the screen offers a recovery key for the encrypted disk and asks for a
|
||||
root password. Then log in as root and register the runner with a token from
|
||||
Gitea's runner settings:
|
||||
root password. Then it asks how many jobs to run at once, the Gitea URL and a
|
||||
registration token from Gitea's runner settings. It registers under the
|
||||
hostname, `runneros-` and four hex digits, and starts.
|
||||
|
||||
```sh
|
||||
gitea-runner -c /etc/gitea-runner/config.yaml register
|
||||
```
|
||||
|
||||
It registers under the hostname, `runneros-` and four hex digits, and starts.
|
||||
To change the number of parallel jobs later, run `systemctl edit
|
||||
gitea-runner` and set `Environment=CAPACITY=<jobs>` under `[Service]`.
|
||||
|
||||
To start over, run `systemctl start factory-reset.target` as root. It reboots
|
||||
and wipes the root partition (`/etc` and `/var`), and the VM sets itself up as
|
||||
|
||||
Reference in new issue
Block a user