From d75c3331cd2b7e6f8cfb5cd0206d62555403f1af Mon Sep 17 00:00:00 2001 From: eti-codefresh Date: Tue, 25 Apr 2023 14:17:13 +0300 Subject: [PATCH 1/3] add support for ENCRYPTED Variables --- graduated/codefresh-run/step.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/graduated/codefresh-run/step.yaml b/graduated/codefresh-run/step.yaml index 527c20e5e..b60403248 100644 --- a/graduated/codefresh-run/step.yaml +++ b/graduated/codefresh-run/step.yaml @@ -3,7 +3,7 @@ kind: step-type metadata: name: codefresh-run title: Run a Codefresh pipeline - version: 1.5.0 + version: 1.6.0 isPublic: true description: Run a Codefresh pipeline by ID or name and attach the created build logs. sources: @@ -137,6 +137,15 @@ spec: "examples": ["key=val"], "default": [] }, + "ENCRYPTED": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Variable names to encrypt.", + "examples": ["key"], + "default": [] + }, "VARIABLE_FILE": { "type": "string", "description": "Import build variables from a file.", @@ -217,6 +226,9 @@ spec: [[ range .Arguments.VARIABLE ]] [[- $cmd = (printf "%s --variable %s" $cmd .) -]] [[- end -]] + [[ range .Arguments.ENCRYPTED ]] + [[- $cmd = (printf "%s --ENCRYPTED %s" $cmd .) -]] + [[- end -]] [[ if .Arguments.VARIABLE_FILE ]] [[- $cmd = (printf "%s --var-file %s" $cmd .Arguments.VARIABLE_FILE) -]] [[- end -]] From b7bb06cf788aa57f885229be1c31467a44aeb991 Mon Sep 17 00:00:00 2001 From: eti-codefresh Date: Thu, 27 Apr 2023 10:53:57 +0300 Subject: [PATCH 2/3] fix flag --- graduated/codefresh-run/step.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graduated/codefresh-run/step.yaml b/graduated/codefresh-run/step.yaml index b60403248..ea4948d8c 100644 --- a/graduated/codefresh-run/step.yaml +++ b/graduated/codefresh-run/step.yaml @@ -227,7 +227,7 @@ spec: [[- $cmd = (printf "%s --variable %s" $cmd .) -]] [[- end -]] [[ range .Arguments.ENCRYPTED ]] - [[- $cmd = (printf "%s --ENCRYPTED %s" $cmd .) -]] + [[- $cmd = (printf "%s --encrypted %s" $cmd .) -]] [[- end -]] [[ if .Arguments.VARIABLE_FILE ]] [[- $cmd = (printf "%s --var-file %s" $cmd .Arguments.VARIABLE_FILE) -]] From d27dda41b0dff737b3e4b6d0535f3d0b45e28d28 Mon Sep 17 00:00:00 2001 From: eti-codefresh Date: Tue, 2 May 2023 11:04:14 +0300 Subject: [PATCH 3/3] bump IMAGE_TAG to latest cli version: 0.83.1 --- graduated/codefresh-run/step.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graduated/codefresh-run/step.yaml b/graduated/codefresh-run/step.yaml index ea4948d8c..754912ea1 100644 --- a/graduated/codefresh-run/step.yaml +++ b/graduated/codefresh-run/step.yaml @@ -55,7 +55,7 @@ spec: "type": "string", "description": "Custom image of codefresh-run step", "examples": ["latest-debian"], - "default": "0.81.4" + "default": "0.83.1" }, "PIPELINE_ID": { "type": "string",