diff --git a/docs/services/gitea/_static/create_runner_token.png b/docs/services/gitea/_static/create_runner_token.png new file mode 100644 index 00000000..035b37ff --- /dev/null +++ b/docs/services/gitea/_static/create_runner_token.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56bd6b2dbf2dc8ad25b022a1f0a4529f4b2fc5892de89439812ab431c537fc84 +size 420722 diff --git a/docs/services/gitea/gitea-runner.md b/docs/services/gitea/gitea-runner.md index 10c385f2..6cde4571 100644 --- a/docs/services/gitea/gitea-runner.md +++ b/docs/services/gitea/gitea-runner.md @@ -16,6 +16,36 @@ If you need/want to run your own runner, you can either install the runner by RP However, we recommend to run the runner in a docker container, as it is easier to maintain and update. +Before you can register a runner (regardless whether you use the RPM or Docker method), you need to create a registration token. You can do this by following the steps below: + +- On your organization or repository page, click on **Settings** +- In the left sidebar, click **Actions** +- Click **Runners** +- On the right side, click **Create new Runner** +- Copy and save the registration token (it will only be displayed once!) +- This token you will need to register your runner with your Gitea instance in the following steps. + + +### RPM Runner + +To setup an [RPM based runner](https://gitea.psi.ch/lx_packages/act-runner), please follow the steps below: + +1. Install the runner package: +```bash +sudo dnf install act-runner +``` +2. Create a config.yaml file in /etc/act-runner/config.yaml and register the runner with your Gitea instance: +```bash +act_runner generate-config > /etc/act_runner/config.yaml +# adapt location of .runner file +act_runner --config /etc/act_runner/config.yaml register +# need registration token +``` +3. Start the runner: +```bash +sudo systemctl enable --now act-runner +``` + ### Docker Runner A docker based runner can be deployes via the following steps: