Using Custom Label Prefix - testflows/TestFlows-GitHub-Hetzner-Runners GitHub Wiki
The github-hetzner-runners supports the following custom job labels:
- type-{name}. See Specifying The Runner Image.
- in-{name}. See Specifying The Runner Location.
- net-{name}. See Specifying The Runner Network.
- image-{architecture}-{type}-{name}. See Specifying The Runner Image.
- setup-{name}. See Specifying The Custom Runner Server Setup Script.
- startup-{name}. See Specifying The Custom Runner Server Startup Script.
However, you can specify a custom prefix for these labels using the --label-prefix option.
✋ Note: | The --label-prefix option is checked after the meta labels have been expanded. |
---|
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}
- startup-{name}
labels for your jobs you must use
- my-type-{name}
- my-in-{name}
- my-image-{architecture}-{type}-{name}
- my-setup-{name}
- my-startup-{name}
labels instead.
job-name:
runs-on: [self-hosted, my-type-cpx11]