diff --git a/docs/developer/cicd_runner.md b/docs/developer/cicd_runner.md index 06b0d9b..9f8a284 100644 --- a/docs/developer/cicd_runner.md +++ b/docs/developer/cicd_runner.md @@ -9,6 +9,12 @@ - Runs the runner itself, and therefore everything else: the deployments to `/sls/bd/hla//` 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 --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 --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: