Hello.
I’m trying out the new template functionality but ran into issues when mixing a template with other pipelines. It works if I only specify the template, but not if i mix them or use multiple templates. Is this expected behavior?
.drone.yml (this will not work)
kind: template
load: plugin.jsonnet
data:
stepName: test
image: alpine
commands: ls
---
kind: pipeline
type: docker
name: mypipelinename
steps:
- name: mystepname
image: alpine
commands:
- ls
Template (from docs example)
local stepName = std.extVar("input.stepName");
local image = std.extVar("input.image");
local commands = std.extVar("input.commands");
{
"kind": "pipeline",
"type": "docker",
"name": "default",
"steps": [
{
"name": stepName,
"image": image,
"commands": [
commands
]
}
]
}