Skip to content

Commit

Permalink
Add export PLATFORMS=all to post-submit jobs for bridge-marker (#3819)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ashokpariya0 authored Dec 12, 2024
1 parent c895421 commit 77c54ee
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 77c54ee

Please sign in to comment.