Added basic templates
This commit is contained in:
commit
dabb49db35
11
default.yaml
Normal file
11
default.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
steps:
|
||||
- name: {{ .input.name }}
|
||||
image: {{ .input.image }}
|
||||
commands:
|
||||
{{ range .input.commands }}
|
||||
- {{ . }}
|
||||
{{ end }}
|
||||
|
17
telegram.jsonnet
Normal file
17
telegram.jsonnet
Normal file
@ -0,0 +1,17 @@
|
||||
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,
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
Loading…
Reference in New Issue
Block a user