Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Multiarch build support by docker buildx #321

Merged
merged 1 commit into from
Jan 6, 2021

Conversation

prabhav-thali
Copy link
Contributor

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.

@ericwill ericwill requested a review from nickboldt January 5, 2021 19:20
Signed-off-by: Prabhav Thali <Prabhav.Thali1@ibm.com>
@ericwill
Copy link
Contributor

ericwill commented Jan 6, 2021

Let's give it a shot

@ericwill ericwill merged commit e1b97e6 into eclipse-che:master Jan 6, 2021
context: .
file: ./build/dockerfiles/Dockerfile
target: registry
platforms: linux/amd64,linux/s390x
Copy link
Contributor

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
Copy link
Contributor

@benoitf benoitf Jan 7, 2021

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@benoitf - Thanks, Raised #325 to address this review comment.


- name: 'Docker Prepare'
run: docker image prune -a -f
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@benoitf Had referred to che-dashboard .yml file for buildx implementation in GA. However, I have removed prune step in #325

monaka pushed a commit to PizzaFactory/che-devfile-registry that referenced this pull request Jan 22, 2021
Signed-off-by: Prabhav Thali <Prabhav.Thali1@ibm.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants