Skip to content

Commit a27cbce

Browse files
author
Zhenya Tikhonov
authored
feat(codefresh-run): add PACK_NAME argument (#550)
`PACK_NAME` argument allows to choose resources size. Allowed values are inherited from `codefresh run --pack-name=<value>`; check [Codefresh CLI documentation](https://codefresh-io.github.io/cli/pipelines/run-pipeline/) for more details. Closes #CR-17123
1 parent 00c3232 commit a27cbce

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

graduated/codefresh-run/step.yaml

Lines changed: 9 additions & 1 deletion
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.3.1
6+
version: 1.4.0
77
isPublic: true
88
description: Run a Codefresh pipeline by ID or name and attach the created build logs.
99
sources:
@@ -104,6 +104,11 @@ spec:
104104
"examples": ["my-runtime-name"],
105105
"default": ""
106106
},
107+
"PACK_NAME": {
108+
"type": "string",
109+
"description": "Resources size (small, medium or large).",
110+
"default": ""
111+
},
107112
"DETACH": {
108113
"type": "boolean",
109114
"description": "Run child pipeline and export the child pipeline's build ID to the $BUILD_ID variable without waiting for the pipeline to complete.",
@@ -201,6 +206,9 @@ spec:
201206
[[ if .Arguments.RUNTIME_NAME ]]
202207
[[- $cmd = (printf "%s --runtime-name %s" $cmd .Arguments.RUNTIME_NAME) -]]
203208
[[- end -]]
209+
[[ if .Arguments.PACK_NAME ]]
210+
[[- $cmd = (printf "%s --pack-name %s" $cmd .Arguments.PACK_NAME) -]]
211+
[[- end -]]
204212
[[ range .Arguments.VARIABLE ]]
205213
[[- $cmd = (printf "%s --variable %s" $cmd .) -]]
206214
[[- end -]]

0 commit comments

Comments
 (0)