Platform

Use the platform section to configure the target operating system and architecture and routes the pipeline to the appropriate runner. If unspecified, the system defaults to Linux amd64.

Example Linux amd64 pipeline:

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

platform:
  os: linux
  arch: amd64

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

Example Linux arm64 pipeline:

15
16
17
platform:
  os: linux
  arch: arm64

Example Linux arm32 pipeline:

15
16
17
platform:
  os: linux
  arch: arm

Windows

If you are running Docker pipelines on windows you must specify the operating system version number.

Please note Windows pipelines are not available on Drone Cloud. This feature is only available when self-hosting

Example windows 1809 pipeline:

5
6
7
8
platform:
  os: windows
  arch: amd64
  version: 1809

Example windows 1903 pipeline:

5
6
7
8
platform:
  os: windows
  arch: amd64
  version: 1903