プラットフォーム
プラットフォームセクションを使用して、ターゲットオペレーティングシステムとアーキテクチャを構成します。
Linuxパイプラインの例:
1 kind: pipeline
2 type: digitalocean
3 name: default
4
5 token:
6 from_secret: token
7
8 platform:
9 os: linux
10 arch: amd64
11
12 steps:
13 - name: build
14 commands:
15 - go build
16 - go test
freebsdパイプラインの例:
1 kind: pipeline
2 type: digitalocean
3 name: default
4
5 token:
6 from_secret: token
7
8 platform:
9 os: freebsd
10 arch: amd64
11
12 steps:
13 - name: build
14 commands:
15 - go build
16 - go test