Drone CI 中文文档

Platform

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

Example windows pipeline:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
kind: pipeline
type: ssh
name: default

server:
  host: 1.2.3.4
  user: root
  password:
    from_secret: password

platform:
  os: windows
  arch: amd64

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

Supported Platforms

os arch
linux amd64
linux arm64
linux arm
linux 386
windows amd64
windows 386
darwin amd64
freebsd amd64
freebsd arm
freebsd 386
netbsd amd64
netbsd arm
openbsd amd64
openbsd arm
openbsd 386
dragonfly amd64
solaris amd64