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 kind: pipeline
2 type: docker
3 name: default
4
5 platform:
6 os: linux
7 arch: amd64
8
9 steps:
10 - name: build
11 image: golang
12 commands:
13 - go build
14 - go test
Example Linux arm64 pipeline:
5 platform:
6 os: linux
7 arch: arm64
Example Linux arm32 pipeline:
5 platform:
6 os: windows
7 arch: arm
Windows
If you are running Docker pipelines on windows you must specify the operating system version number.
Example windows 1809 pipeline:
5 platform:
6 os: windows
7 arch: amd64
8 version: 1809
Example windows 1903 pipeline:
5 platform:
6 os: windows
7 arch: amd64
8 version: 1903