We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e3c47b commit b8e0f81Copy full SHA for b8e0f81
1 file changed
showroom/tasks/ocm.yaml
@@ -9,7 +9,7 @@ includes:
9
10
tasks:
11
create:
12
- desc: Walk through all available component constructors and create the component versions.
+ desc: Build OCM transport archive from showroom descriptors.
13
deps:
14
- task: tools:install-ocm-v1
15
requires:
@@ -18,7 +18,12 @@ tasks:
18
- "{{ .OCM_CMD }} version | jq"
19
- |
20
shopt -s nullglob
21
- for FILE in ./ocm/*.yaml ; do
22
- {{ .OCM_CMD }} add componentversion --create --file ctf "$FILE"
23
- done
+ FILES=(./showroom/ocm/*.yaml)
+ if [[ ${#FILES[@]} -eq 0 ]]; then
+ echo "No OCM descriptor files found under showroom/ocm/*.yaml"
24
+ exit 1
25
+ fi
26
+ mkdir -p ./ocm
27
+ rm -f ./ocm/transport.ctf
28
+ {{ .OCM_CMD }} add componentversions --create --file ./ocm/transport.ctf "${FILES[@]}"
29
silent: false
0 commit comments