Open gaslitbytech opened 2 years ago
I've now pushed the latest version to docker hub - and hope to add automated releases for this shortly.
Thanks I guess the automation will fix the current issue I see with platforms for linux/amd64
WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
Full Error:
docker run djrobstep/migra:latest
Unable to find image 'djrobstep/migra:latest' locally
latest: Pulling from djrobstep/migra
Digest: sha256:b77a5b2a4b006aa22f145465d0f273f74c9b40f0230ebdfb79639bb10b1876a3
Status: Downloaded newer image for djrobstep/migra:latest
WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
exec /docker-entrypoint.sh: exec format error
Previously at work have come across this with other docker images with some developers having the new mac with M1 and looked at using:
docker buildx build --build-arg BUILDKIT_MULTI_PLATFORM=1 .
as per https://docs.docker.com/engine/reference/commandline/buildx_build/ though we were using docker-compose so it was a little more complex with bake
.
Github actions now seems to have a neat way for multiarch builds https://github.com/marketplace/actions/build-and-push-docker-images
I just seen that this repo already uses circle ci and it seems neat.
I'll see if I can add steps into that to push to docker instead of my idea to use github actions.
Comparing dockerhub and pypi I can see that docker is behind.
Can github actions (see docs) be used to publish automatically as I assume pypi is?