Skip to content

Commit f74d77b

Browse files
committed
fix(tekton): correct array result expansion syntax for IMAGES param
Remove the extra array wrapping (- prefix) when passing array results. The syntax `value: $(tasks.X.results.ARRAY[*])` expands directly into the array parameter, while `value: [- $(tasks.X.results.ARRAY[*])]` incorrectly wraps the expansion in another array level.
1 parent 49ea74a commit f74d77b

3 files changed

Lines changed: 6 additions & 9 deletions

File tree

.tekton/base-image-multiarch-pull-request-pipeline.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,8 @@ spec:
368368
- name: ALWAYS_BUILD_INDEX
369369
value: $(params.build-image-index)
370370
- name: IMAGES
371-
value:
372-
# Use compressed image refs from convert-compression
373-
- $(tasks.convert-compression.results.IMAGE_REFS[*])
371+
# Use compressed image refs from convert-compression (array result expansion)
372+
value: $(tasks.convert-compression.results.IMAGE_REFS[*])
374373
- name: BUILDAH_FORMAT
375374
value: $(params.buildah-format)
376375
runAfter:

.tekton/base-image-multiarch-push-pipeline.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,8 @@ spec:
431431
- name: ALWAYS_BUILD_INDEX
432432
value: $(params.build-image-index)
433433
- name: IMAGES
434-
value:
435-
# Use compressed image refs from convert-compression
436-
- $(tasks.convert-compression.results.IMAGE_REFS[*])
434+
# Use compressed image refs from convert-compression (array result expansion)
435+
value: $(tasks.convert-compression.results.IMAGE_REFS[*])
437436
- name: BUILDAH_FORMAT
438437
value: $(params.buildah-format)
439438
runAfter:

.tekton/multiarch-pipeline.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,9 +451,8 @@ spec:
451451
- name: ALWAYS_BUILD_INDEX
452452
value: $(params.build-image-index)
453453
- name: IMAGES
454-
value:
455-
# Use converted image refs (passthrough if no compression)
456-
- $(tasks.convert-compression.results.IMAGE_REFS[*])
454+
# Use converted image refs (passthrough if no compression) - array result expansion
455+
value: $(tasks.convert-compression.results.IMAGE_REFS[*])
457456
- name: BUILDAH_FORMAT
458457
value: $(params.buildah-format)
459458
runAfter:

0 commit comments

Comments
 (0)