Skip to content

Build and push multi-platform docker image #1567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

radiantly
Copy link

This PR adds the publish-docker-image-multiplatform CI job step that pushes a multi-platform docker image when a new tag is created. #1211

Unfortunately, this is not as simple as pushing two images targeting different platforms to the same tag. There are a couple of ways to create a multi-platform image:

  • Using docker buildx to build images for all platforms. To do this images targeting non-native platforms would need to be built using QEMU (slower), a remote machine or cross-compilation.
  • Building and publishing platform-specific images emscripten/emsdk-x64, emscripten/emsdk-arm64 and then creating a manifest that links to these images. This is the simpler solution to implement, and is what this PR does.

Tested with CircleCI on my fork. See the pushed images at radiantly/emsdk · DockerHub

@sbc100
Copy link
Collaborator

sbc100 commented Jun 13, 2025

Nice! Thanks for working on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants