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

feat: publish multi arch docker image to dockerhub #751

Merged
merged 43 commits into from
Jun 10, 2024

Conversation

Ch4s3r
Copy link
Contributor

@Ch4s3r Ch4s3r commented Jun 7, 2024

When a new release tag is created, trigger a new docker image build, using the provided Dockerfile.
Builds an image for arm64, amd64 and arm/v7 on parallel running runners with different architecture, for native compilation speed.
Combines all images into one multi arch build and uploads it to dockerhub as mergeability/mergeable.
This image is then tagged with the version from the github tag and the latest tag.
Can also be triggered manually which then only creates the latest tag.

Most of the code comes from the official docker docs on how to build a multi arch image.

Fixes #597

Tested and verified it works when pushing a release tag.

image

Todos:

  • Changesecrets.DOCKERHUB_PASSWORD to secrets.DOCKERHUB_TOKEN (not sure if password is still accepted by dockerhub)

@Ch4s3r Ch4s3r changed the title Publish multi arch docker image to dockerhub feat: publish multi arch docker image to dockerhub Jun 7, 2024
@Ch4s3r
Copy link
Contributor Author

Ch4s3r commented Jun 8, 2024

@jusx @shine2lay could any of you please have a look when you have time ? :)

@shine2lay
Copy link
Member

@Ch4s3r I checked that we have DOCKERHUB_TOKEN in repository secrets

@shine2lay shine2lay merged commit b9fda0b into mergeability:master Jun 10, 2024
1 of 2 checks passed
Copy link

🎉 This PR is included in version 2.18.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Release & publish docker images with versioning after release is completed
2 participants