Skip to content

Commit fb8022a

Browse files
Add ability to use secret variables in codefresh-run step (#723)
* Add ability to use secret variables in codefresh-run step * Add ability to use secret variables in codefresh-run step * Add ability to use secret variables in codefresh-run step
1 parent 3458a09 commit fb8022a

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

graduated/codefresh-run/step.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: step-type
33
metadata:
44
name: codefresh-run
55
title: Run a Codefresh pipeline
6-
version: 1.5.3
6+
version: 1.6.0
77
isPublic: true
88
description: Run a Codefresh pipeline by ID or name and attach the created build logs.
99
sources:
@@ -55,7 +55,7 @@ spec:
5555
"type": "string",
5656
"description": "Custom image of codefresh-run step",
5757
"examples": ["latest-debian"],
58-
"default": "0.84.7"
58+
"default": "0.89.1"
5959
},
6060
"PIPELINE_ID": {
6161
"type": "string",
@@ -137,6 +137,15 @@ spec:
137137
"examples": ["key=val"],
138138
"default": []
139139
},
140+
"SECRETS": {
141+
"type": "array",
142+
"items": {
143+
"type": "string"
144+
},
145+
"description": "Set build secrets.",
146+
"examples": ["key=val"],
147+
"default": []
148+
},
140149
"VARIABLE_FILE": {
141150
"type": "string",
142151
"description": "Import build variables from a file.",
@@ -217,6 +226,9 @@ spec:
217226
[[ range .Arguments.VARIABLE ]]
218227
[[- $cmd = (printf "%s --variable %s" $cmd .) -]]
219228
[[- end -]]
229+
[[ range .Arguments.SECRETS ]]
230+
[[- $cmd = (printf "%s --secret %s" $cmd .) -]]
231+
[[- end -]]
220232
[[ if .Arguments.VARIABLE_FILE ]]
221233
[[- $cmd = (printf "%s --var-file %s" $cmd .Arguments.VARIABLE_FILE) -]]
222234
[[- end -]]

0 commit comments

Comments
 (0)