From 77c54ee980189832c104384ec38d83debf66d0c5 Mon Sep 17 00:00:00 2001 From: Pariya Ashok Date: Thu, 12 Dec 2024 13:39:46 +0530 Subject: [PATCH] Add export PLATFORMS=all to post-submit jobs for bridge-marker (#3819) This update ensures that the PLATFORMS environment variable is set to "all" before executing the `make docker-build docker-push` command in both `main-bridge-marker` and `release-bridge-marker` jobs. This change enables building multi-platform images Signed-off-by: Ashok Pariya --- .../kubevirt/bridge-marker/bridge-marker-postsubmits.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/github/ci/prow-deploy/files/jobs/kubevirt/bridge-marker/bridge-marker-postsubmits.yaml b/github/ci/prow-deploy/files/jobs/kubevirt/bridge-marker/bridge-marker-postsubmits.yaml index 1cd83d6e46..8babcbf5c9 100644 --- a/github/ci/prow-deploy/files/jobs/kubevirt/bridge-marker/bridge-marker-postsubmits.yaml +++ b/github/ci/prow-deploy/files/jobs/kubevirt/bridge-marker/bridge-marker-postsubmits.yaml @@ -19,7 +19,10 @@ postsubmits: - "/usr/local/bin/runner.sh" - "/bin/bash" - "-c" - - "cat $QUAY_PASSWORD | docker login --username $(cat $QUAY_USER) --password-stdin=true quay.io && make docker-build docker-push" + - | + export PLATFORMS=all && + cat $QUAY_PASSWORD | docker login --username $(cat $QUAY_USER) --password-stdin=true quay.io && + make docker-build docker-push # docker-in-docker needs privileged mode securityContext: privileged: true @@ -43,6 +46,7 @@ postsubmits: - "/bin/bash" - "-c" - | + export PLATFORMS=all && cat $QUAY_PASSWORD | docker login --username $(cat $QUAY_USER) --password-stdin=true quay.io && # Only push images on tags COMMIT_TAG=$(git tag --points-at HEAD | head -1)