4 ms·
I've been trying for a while to build multi-arch containers in CI. I was trying to do it using `manifest-tool`[0] which seems like is mostly deprecated in favo
by dijit 4y ago
I've been trying for a while to build multi-arch containers in CI.
I was trying to do it using `manifest-tool`[0] which seems like is mostly deprecated in favour of `docker manifest`
If I use manifest-tool on my local machine against GCR (google container registry) it seems to work, but if I use it in CI with `docker-credentials-gcr` it does not work at all.. go figure.
What you would generally do is create a docker image for each of your variants (arm64, amd64, windows, linux, macos(who does this?)) then merge them:
manifest-tool push from-args \
--platforms linux/amd64,linux/arm/v5,linux/arm/v7 \
--template foo/bar-ARCHVARIANT:v1 \
--target foo/bar:v1
[0]: https://github.com/estesp/manifest-tool https://github.com/estesp/manifest-tool