Add selfhoted as runner label

This commit is contained in:
Magnus Andersson 2024-02-19 15:28:12 +01:00
parent 9c6981accf
commit a7a807cb0a
Signed by: mandersson
GPG key ID: 19CB2C58E1F19B16

View file

@ -123,7 +123,7 @@ class podmanrunner::runner (
exec { "${user}${userpostfix}-register-runner":
command => "${sdrun} /bin/bash -c 'podman run -it --rm -u podman -v ./runnerdata:/data:Z localhost/podmanrunner:3.3.0 /bin/bash -c \
\"date >> /data/register.log && forgejo-runner --config /data/config.yml register --no-interactive \
--token ${userdata["token"]} --name runner1 --instance ${userdata["url"]} 1>>/data/register.log 2>&1\"'",
--token ${userdata["token"]} --name runner1 --labels self-hosted --instance ${userdata["url"]} 1>>/data/register.log 2>&1\"'",
path => '/usr/bin:/usr/sbin:/bin',
provider => shell,
logoutput => false,