mirror of
https://github.com/drone/drone-cli.git
synced 2025-02-08 15:51:09 +01:00
* Fix `--stream` combined with `--format` for `jsonnet` If both are defined and jsonnet defines a list, it currently only generates one of the resources Also added a test for it * Minimize diffs by keeping all in one file
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'),
|
|
]
|