Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate docker releases/tagging #215

Open
gaslitbytech opened this issue Sep 15, 2022 · 4 comments
Open

Automate docker releases/tagging #215

gaslitbytech opened this issue Sep 15, 2022 · 4 comments

Comments

@gaslitbytech
Copy link

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?

@djrobstep djrobstep changed the title most recent docker release was a year ago compared to pypi release this week Automate docker releases/tagging Sep 17, 2022
@djrobstep
Copy link
Owner

I've now pushed the latest version to docker hub - and hope to add automated releases for this shortly.

@gaslitbytech
Copy link
Author

gaslitbytech commented Sep 18, 2022

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.

@gaslitbytech
Copy link
Author

Github actions now seems to have a neat way for multiarch builds https://github.com/marketplace/actions/build-and-push-docker-images

@gaslitbytech
Copy link
Author

gaslitbytech commented Nov 19, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants