Runner Labelとは?
runner labelは、jobが一致するマシンを要求できるようにCIのrunnerに付けられる文字列タグです。GitHub Actionsでは、jobのruns-onがubuntu-latestやカスタムタグといったlabelを列挙し、schedulerがそれらすべてを備えたrunnerへjobをルーティングします。labelは、OS、サイズ、GPUアクセスといった要件を表現する方法です。
なぜ重要か
labelはjobとフリートの間の契約です。間違えると、jobは存在しないマシンを待って永遠にキューに残ります。マネージドrunnerのプラットフォームはサイズや機能のlabelを公開しており、ワークロードに見合う最も安いrunnerを選べるようにしています。
関連する概念
- GitHub Actionsではruns-onがlabelでrunnerを選択する
- カスタムlabelは専用のハードウェアやソフトウェアを指定する
- jobは要求したすべてのlabelに一致するrunnerを必要とする
関連ガイド
What Is a Runner Group?A runner group is a named collection of CI runners with shared access policies, used to control which reposit…
What Is a Managed Runner?A managed runner is CI compute operated by a third party that handles provisioning, scaling, isolation, and m…
What Is a Self-Hosted Runner?A self-hosted runner is a CI worker you provision and operate yourself, rather than using the CI provider's h…