Match jobs to specialized self-hosted infrastructure.

Section: Services and operational patterns

Label-based runner targeting

yaml
yaml
runs-on: [self-hosted, gpu, linux]
Explanation

Runner labels let you route GPU builds, ARM builds, or deployment jobs to the correct machines.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Services and operational patterns
Start a Redis service for tests
Use a service container for integration or cache tests.
OpenIn sheetyamlsame section
Inspect the workspace path
Print the checkout path on the runner.
OpenIn sheetbashsame section
Target a self-hosted runner
Run on infrastructure you manage.
Run the job inside a container
Use a container image as the job runtime.