Drone CI 中文文档

Platform

Use the platform section to configure the target operating system and architecture and routes the pipeline to the appropriate runner.

Example linux arm64 pipeline:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
kind: pipeline
type: kubernetes
name: default

platform:
  os: linux
  arch: arm64

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