Platform

Use the platform section to configure the target operating system and architecture.

Example linux pipeline:

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

token:
  from_secret: token

platform:
  os: linux
  arch: amd64

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

Example freebsd pipeline:

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

token:
  from_secret: token

platform:
  os: freebsd
  arch: amd64

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