fix: additional runner labels

This commit is contained in:
Michael Kriese 2024-12-06 18:05:18 +01:00
parent 25cee0693a
commit 17a64d3843
No known key found for this signature in database
GPG key ID: F8D7748549A5986A

View file

@ -32,7 +32,8 @@ function register() {
local forgejo="$1" local forgejo="$1"
mktemp -d > forgejo-runner-home mktemp -d > forgejo-runner-home
docker exec --user 1000 forgejo forgejo actions generate-runner-token > forgejo-runner-token docker exec --user 1000 forgejo forgejo actions generate-runner-token > forgejo-runner-token
timeout --signal=KILL 30 forgejo-runner register --no-interactive --instance "$forgejo" --name runner --token $(cat forgejo-runner-token) --labels docker:docker://code.forgejo.org/oci/node:16-bullseye,ubuntu-latest:docker://code.forgejo.org/oci/node:16-buster,self-hosted:lxc://debian:bullseye timeout --signal=KILL 30 forgejo-runner register --no-interactive --instance "$forgejo" --name runner --token $(cat forgejo-runner-token) \
--labels docker:docker://code.forgejo.org/oci/node:16-bullseye,ubuntu-latest:docker://code.forgejo.org/oci/node:16-buster,self-hosted:lxc://debian:bullseye,lxc-bullseye:lxc://debian:bullseye,lxc-bookworm:lxc://debian:bookworm
} }
function run() { function run() {