File tree Expand file tree Collapse file tree 4 files changed +26
-9
lines changed
buildah-remote-oci-ta/0.3 Expand file tree Collapse file tree 4 files changed +26
-9
lines changed Original file line number Diff line number Diff line change @@ -556,12 +556,14 @@ spec:
556
556
- SETFCAP
557
557
- name : icm
558
558
image : quay.io/konflux-ci/icm-injection-scripts:latest@sha256:462980e94ba689b5f56c3d5dfb3358cd8c685300daf65a71532f11898935e7f1
559
- args :
560
- - $(params.IMAGE)
561
559
workingDir : /var/workdir
562
560
volumeMounts :
563
561
- mountPath : /var/lib/containers
564
562
name : varlibcontainers
563
+ script : |
564
+ #!/bin/bash
565
+ set -euo pipefail
566
+ /scripts/inject-icm.sh "$IMAGE"
565
567
securityContext :
566
568
capabilities :
567
569
add :
Original file line number Diff line number Diff line change @@ -661,11 +661,17 @@ spec:
661
661
name : ssh
662
662
readOnly : true
663
663
workingDir : /var/workdir
664
- - args :
665
- - $(params.IMAGE)
666
- computeResources : {}
664
+ - computeResources : {}
667
665
image : quay.io/konflux-ci/icm-injection-scripts:latest@sha256:462980e94ba689b5f56c3d5dfb3358cd8c685300daf65a71532f11898935e7f1
668
666
name : icm
667
+ script : |
668
+ #!/bin/bash
669
+ set -euo pipefail
670
+ if [ "${IMAGE_APPEND_PLATFORM}" == "true" ]; then
671
+ IMAGE="${IMAGE}-${PLATFORM//[^a-zA-Z0-9]/-}"
672
+ export IMAGE
673
+ fi
674
+ /scripts/inject-icm.sh "$IMAGE"
669
675
securityContext :
670
676
capabilities :
671
677
add :
Original file line number Diff line number Diff line change @@ -637,11 +637,17 @@ spec:
637
637
name : ssh
638
638
readOnly : true
639
639
workingDir : $(workspaces.source.path)
640
- - args :
641
- - $(params.IMAGE)
642
- computeResources : {}
640
+ - computeResources : {}
643
641
image : quay.io/konflux-ci/icm-injection-scripts:latest@sha256:462980e94ba689b5f56c3d5dfb3358cd8c685300daf65a71532f11898935e7f1
644
642
name : icm
643
+ script : |
644
+ #!/bin/bash
645
+ set -euo pipefail
646
+ if [ "${IMAGE_APPEND_PLATFORM}" == "true" ]; then
647
+ IMAGE="${IMAGE}-${PLATFORM//[^a-zA-Z0-9]/-}"
648
+ export IMAGE
649
+ fi
650
+ /scripts/inject-icm.sh "$IMAGE"
645
651
securityContext :
646
652
capabilities :
647
653
add :
Original file line number Diff line number Diff line change @@ -503,7 +503,10 @@ spec:
503
503
- mountPath : /var/lib/containers
504
504
name : varlibcontainers
505
505
workingDir : $(workspaces.source.path)
506
- args : [$(params.IMAGE)]
506
+ script : |
507
+ #!/bin/bash
508
+ set -euo pipefail
509
+ /scripts/inject-icm.sh "$IMAGE"
507
510
- name : push
508
511
image : quay.io/konflux-ci/buildah-task:latest@sha256:b2d6c32d1e05e91920cd4475b2761d58bb7ee11ad5dff3ecb59831c7572b4d0c
509
512
script : |
You can’t perform that action at this time.
0 commit comments