Added basic templates

This commit is contained in:
Kasper Juul Hermansen 2022-10-29 17:08:39 +02:00
commit dabb49db35
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
2 changed files with 28 additions and 0 deletions

11
default.yaml Normal file
View 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
View 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,
],
},
],
}