You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
github/workflows: Use buildx to build images for multiple platforms
docker buildx is able to create multi-platform docker images in a single
invocation (using emulation where required), but multi-platform images
cannot be stored locally, only pushed directly to a regsitry. So refacor
the workflow a little.
Set common configuration as environment variables.
Add actions to initialize QEMU and buildx.
The remaining steps are modified to:
* First build just the amd64 image and use this for validation using
docker-compose (--load only supports single-platform images)
* Build, tag and push the "latest" images for all platforms in a
single invocation
* For tags, override IMAGE_TAG and run the same command again.
Built layers are cached so no redundant work is performed, despite
running the same command multiple times.
Signed-off-by: Peter Hoyes <[email protected]>
0 commit comments