docs: update prod setup #68

Merged
labrec_b merged 3 commits from feature/prod-cicd-runner into main 2026-08-27 15:53:58 +02:00
+13 -3
View File
@@ -9,6 +9,12 @@
- Runs the runner itself, and therefore everything else: the deployments
to `/sls/bd/hla/<env>/` and the `ioc ...` commands
## Install the runner
```
sudo dnf install act-runner
```
## Setup
Resources:
@@ -21,9 +27,12 @@ Register the runner: (by default the name is the machine name `sls-vserv-bd-hla0
sudo su svcusr-sls2hla
mkdir ~/gitea-runner
cd ~/gitea-runner
/usr/local/bin/act_runner register --instance https://gitea.psi.ch/ --labels hla-dev --token <token> --no-interactive
/usr/local/bin/act_runner generate-config | sudo tee /etc/act_runner/config.yaml > /dev/null
/usr/local/bin/act_runner --config /etc/act_runner/config.yaml register --instance https://gitea.psi.ch/ --labels <labels> --token <token> --no-interactive
```
where we used `hla-dev` or `hla-prod` for the labels.
Note, if you use a systemd service with a config file as in the example below,
the labels will be read from that file.
@@ -37,7 +46,8 @@ chmod 755 /sls/bd/hla
...
```
Install Node -- required for actions like repo checkout
Install Node -- required for actions like repo checkout (TODO: was not done on `prod` runner `sls-vserv-bd-hla01` yet --> no internet access)
```
mkdir ~/.local/bin
@@ -140,7 +150,7 @@ Configure the runner labels: (edit `/etc/act_runner/config.yaml`)
```
runner:
labels:
- "hla-dev"
- "hla-dev" # or "hla-prod"
```
Enable and restart: