Skip to content

Using Custom Label Prefix

vzakaznikov edited this page Mar 7, 2024 · 4 revisions

The github-hetzner-runners supports the following custom job labels:

However, you can specify a custom prefix for these labels using the --label-prefix option.

For example, let's add the my- prefix to all the labels.

github-hetzner-runners --label-prefix "my-"

Now instead of using type-{name}, in-{name}, image-{architecture}-{type}-{name}, setup-{name}, and startup-{name} labels for your jobs you must use my-type-{name}, my-in-{name}, my-image-{architecture}-{type}-{name}, my-setup-{name}, and my-startup-{name} labels instead.

job-name:
  runs-on: [self-hosted, my-type-cpx11]

Clone this wiki locally