mirror of
https://github.com/drone/drone-cli.git
synced 2026-01-24 11:48:01 +01:00
28 lines
435 B
Plaintext
28 lines
435 B
Plaintext
|
|
local pipeline(name) =
|
||
|
|
{
|
||
|
|
kind: 'pipeline',
|
||
|
|
type: 'docker',
|
||
|
|
name: name,
|
||
|
|
platform: {
|
||
|
|
os: 'linux',
|
||
|
|
arch: 'amd64',
|
||
|
|
},
|
||
|
|
steps: [
|
||
|
|
{
|
||
|
|
name: 'test',
|
||
|
|
image: 'golang:1.16',
|
||
|
|
commands: ['go test ./...'],
|
||
|
|
},
|
||
|
|
{
|
||
|
|
name: 'build',
|
||
|
|
image: 'golang:1.16',
|
||
|
|
commands: ['go build ./...'],
|
||
|
|
},
|
||
|
|
],
|
||
|
|
};
|
||
|
|
|
||
|
|
[
|
||
|
|
pipeline('first'),
|
||
|
|
pipeline('second'),
|
||
|
|
]
|