commit dabb49db35c6cee839a2a80cb447ada3e74173e0 Author: kjuulh Date: Sat Oct 29 17:08:39 2022 +0200 Added basic templates diff --git a/default.yaml b/default.yaml new file mode 100644 index 0000000..425641e --- /dev/null +++ b/default.yaml @@ -0,0 +1,11 @@ +kind: pipeline +type: docker +name: default +steps: +- name: {{ .input.name }} + image: {{ .input.image }} + commands: + {{ range .input.commands }} + - {{ . }} + {{ end }} + diff --git a/telegram.jsonnet b/telegram.jsonnet new file mode 100644 index 0000000..219d041 --- /dev/null +++ b/telegram.jsonnet @@ -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, + ], + }, + ], +}