forked from linux/documentation
update how to install runner via rpm
This commit is contained in:
1 parent
3c58683e30
commit
6b4abdf7bc
2 files changed
+33
No files matched your search
Binary file not shown.
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user