Drone CI 中文文档

Routing

The nodes section can be used to route pipelines to groups of runners with matching labels. This can be useful when you need to route pipelines to runners with special configurations or hardware, for example a pool of runners with gpus or with high memory.

A pipeline is not routed to a runner unless it matches all runner labels. If the pipeline only defines and matches a subset of runner labels it will not be routed to the runner.
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
kind: pipeline
type: docker
name: default

steps:
- name: build
  image: golang
  commands:
  - go build
  - go test

node:
  keyA: valueA
  keyB: valueB