1
0
mirror of https://github.com/drone/drone-cli.git synced 2025-02-08 15:51:09 +01:00
drone-cli/drone/jsonnet/testdata/stream_format.jsonnet
Julien Duchesne 8e538b63f5
Fix --stream combined with --format for jsonnet (#195)
* 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
2021-08-26 15:34:52 +01:00

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'),
]