From dabb49db35c6cee839a2a80cb447ada3e74173e0 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 29 Oct 2022 17:08:39 +0200 Subject: [PATCH] Added basic templates --- default.yaml | 11 +++++++++++ telegram.jsonnet | 17 +++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 default.yaml create mode 100644 telegram.jsonnet 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, + ], + }, + ], +}