-
Notifications
You must be signed in to change notification settings - Fork 8
Meta Labels
vzakaznikov edited this page Mar 7, 2024
·
13 revisions
Meta labels can be used to define custom runner labels that will be replaced by other supported labels, such as:
- type-{name}. See Specifying The Runner Image.
- in-{name}. See Specifying The Runner Location.
- 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.
The meta labels can be defined using the --meta-label option. More than one meta label can be defined.
For example,
github-hetzner-runners --meta-label test-arm "self-hosted,type-cax21,image-arm-system-ubuntu-22.04" --meta-label test-x86 "self-hosted,type-cpx21,image-x86-system-ubuntu-22.04"
will define the following two meta labels:
- test-arm that will map to [self-hosted, type-cax21, image-arm-system-ubuntu-22.04]
- test-x86 that will map to [self-hosted, type-cpx21, image-x86-system-ubuntu-22.04]
Once meta labels are defined, you can use them to request a runner with the corresponding labels.
job-name:
runs-on: [test-arm]
that will be equivalent to
job-name:
runs-on: [self-hosted, type-cax21, image-arm-system-ubuntu-22.04]
and
job-name:
runs-on: [test-x86]
that will be equivalent to
job-name:
runs-on: [self-hosted, type-cpx21, image-x86-system-ubuntu-22.04]
Developed and maintained by the TestFlows team.
- Home
- Installation
- Quick Start
- Getting Started Tutorial
- Basic Configuration
- Specifying the Maximum Number of Runners
- Specifying the Maximum Number of Runners Used in Workflow a Run
- Recycling Powered‐Off Servers
- Skipping Jobs
- Using Custom Label Prefix
- Jobs That Require the Docker Engine
- Specifying The Runner Type
- Specifying The Runner Location
- Specifying The Runner Network
- Specifying The Runner Image
- Specifying The Custom Runner Server Setup Script
- Specifying The Custom Runner Server Startup Script
- Disabling Setup or Startup Scripts
- Specifying Standby Runners
- Using Caching Volumes
- Specifying Logger Configuration
- Listing All Current Servers
- Opening The SSH Client To The Server
- Deleting All Runners and Their Servers
- Using a Configuration File
- Using Project Configuration Files
- Specifying SSH Key
- Specifying Additional SSH Keys
- Running as a Service
- Running as a Cloud Service
- Scaling Up Runners
- Scaling Down Runners
- Handling Failing Conditions
- Meta Labels
- Estimating Costs
- Listing Images
- Deleting Images
- Creating Custom Images
- Embedded Monitoring Dashboard
- Prometheus Metrics
- Program Options