Multi-arch builds on kubernetes pipeline

apologies if it has been discussed before,

now that some colleagues have M1s chips I had to review some builds; any chance a plugins/docker and/or plugins/ecr steps can produce amd64 and arm64 builds?

Yes, we publish arm32, arm64 and amd64 versions of most official drone plugins using our official docker plugin. See this example configuration https://github.com/drone/drone-netlify/blob/master/.drone.yml

However, please keep in mind that you will probably need to build the image on the target architecture. For example, if you want to publish an arm64 image you will probably need to build the image on an arm64 server. I use the world “probably” because there are some exceptions, depending on your programming language, and depending on your dockerfile.

thanks,
fair enough, today I had to do with something like

docker buildx build -t myorg/maildev:1.1.0 --platform linux/amd64,linux/arm64 --push .

and that, I guess via qemu or something, produced compatible builds, I was thinking perhaps I could leverage this buildx system.

buildx requires qemu and most cloud provides disable nested virtualization, which makes buildx problematic for most of our users. But with that being said, you can certainly experiment with buildx, you just won’t be able to use the plugins/docker image. You would either need to create a new buildx plugin [1] or you would need to interact with docker directly [2]

[1] https://github.com/drone/proposal/issues/5#issuecomment-878472674
[2] https://docs.drone.io/pipeline/docker/examples/services/docker/