From 12386f0b19dc4db125b4524d5f53c9a784fc28aa Mon Sep 17 00:00:00 2001 From: Max Gautier Date: Fri, 18 Nov 2022 11:04:31 +0100 Subject: [PATCH] Add params to get-base-image We can't directly use the Pipeline parameters See https://github.com/tektoncd/pipeline/issues/1879 --- hack/cnbi-package-list.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hack/cnbi-package-list.yaml b/hack/cnbi-package-list.yaml index 1654466..b539522 100644 --- a/hack/cnbi-package-list.yaml +++ b/hack/cnbi-package-list.yaml @@ -40,13 +40,19 @@ spec: - $(params.packages) ####### TODO: the rest of the tasks sould be shared between all types of sources - name: get-base-image + params: + - name: baseImage + value: $(params.baseImage) taskSpec: + params: + - name: baseImage + type: string results: - name: baseImage steps: - script: | # PLACEHOLDER image=quay.io/thoth-station/s2i-custom-notebook - if [ -n "$(params.baseImage" ] + if [ -n "$(params.baseImage)" ] then image="$(params.baseImage)" fi