Manage runners labels #2

Closed
opened 2026-02-15 13:11:48 +01:00 by jriou · 0 comments
Owner

In file /etc/forgejo-runners/{{ runner_name }}/.runner file, read the content, combine with a dict of labels (key is tag name, value is the docker image).

Example:

forgejo_runners_labels:
  docker: docker://data.forgejo.org/oci/node:22-bookworm

Gives

...
  "labels": [
    "docker:docker://data.forgejo.org/oci/node:22-bookworm"
  ]
...

Then write to the same file in JSON.

In file `/etc/forgejo-runners/{{ runner_name }}/.runner` file, read the content, combine with a dict of labels (key is tag name, value is the docker image). Example: ```yaml forgejo_runners_labels: docker: docker://data.forgejo.org/oci/node:22-bookworm ``` Gives ```json ... "labels": [ "docker:docker://data.forgejo.org/oci/node:22-bookworm" ] ... ``` Then write to the same file in JSON.
jriou self-assigned this 2026-02-16 07:29:24 +01:00
jriou referenced this issue from a commit 2026-02-16 08:08:50 +01:00
jriou closed this issue 2026-02-16 08:08:50 +01:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jriou/jriou.forgejo#2
No description provided.