-
Notifications
You must be signed in to change notification settings - Fork 114
Multiarch build support by docker buildx #321
Conversation
Signed-off-by: Prabhav Thali <Prabhav.Thali1@ibm.com>
a3339a6
to
5b5f74c
Compare
Let's give it a shot |
context: . | ||
file: ./build/dockerfiles/Dockerfile | ||
target: registry | ||
platforms: linux/amd64,linux/s390x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we're missing 2 arches there: ppc64le and arm64
context: . | ||
file: ./build/dockerfiles/Dockerfile | ||
target: registry | ||
platforms: linux/amd64,linux/s390x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like platforms should be a constant or a file like PLATFORMS in root repository to avoid copy/paste
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
- name: 'Docker Prepare' | ||
run: docker image prune -a -f |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need to remove other images ? we're missing some spaces ?
if not we could keep them to not slow down
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Prabhav Thali <Prabhav.Thali1@ibm.com>
What does this PR do?
Enables docker buildx support in GitHub Actions job to build and publish multiarch docker images. All the workflows (nightly build, PR check, and release) are updated to have multiarch support.
What issues does this PR fix or reference?
This refers to #17124. As per @nickboldt's comment on #250, raised this PR to add multiarch support.