Multi-platform image
Closed this issue · 4 comments
joemaller commented
Might be one-line? How to test?
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: user/app:latest
https://github.com/docker/build-push-action/blob/master/docs/advanced/multi-platform.md```
joemaller commented
Not so fast there buddy...
Error from GitHub Actions:
error: multiple platforms feature is currently not supported for docker driver. Please switch to a different driver (eg. "docker buildx create --use")
Error: buildx failed with: error: multiple platforms feature is currently not supported for docker driver. Please switch to a different driver (eg. "docker buildx create --use")
joemaller commented
You can build multi-platform images using the platforms input as described below.
💡 List of available platforms will be displayed and available through our setup-buildx action.
💡 If you want support for more platforms, you can use QEMU with our setup-qemu action.
https://github.com/docker/build-push-action/blob/master/docs/advanced/multi-platform.md
joemaller commented
Another walkthrough: https://dev.to/cloudx/multi-arch-docker-images-the-easy-way-with-github-actions-4k54