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

Add tag based multi arch docker build using GitHub Workflows #2229

Merged
merged 1 commit into from
Oct 14, 2021

Conversation

TrAnn3l
Copy link
Contributor

@TrAnn3l TrAnn3l commented Oct 14, 2021

Hey,

I added a github workflow which should build multi-arch docker images for every new tag.
I also added the possibility to push the images to ghcr.io (GitHub Packages)
In addition to that, i added a build cache, becuase building images with qemu can quite take a while (around 20 min), so it should be much faster for subsequent builds.

The tagging behaviour should be identically to the current docker hub repo
When a new stable tag is published, e.g. v0.50.1, then the following tags will be created: 0.50.1, 0.50-latest, latest
When a new beta tag is published, e.g. v0.51.1-beta, then the following tags will be created: 0.51.1-beta, 0.51-latest

For the action to work, only the two secrets DOCKER_USERNAME & DOCKER_PASSWORD need to be created and filled in the repo settings. For ghcr.io to work, no secrets are needed, but i think the package visibility needs to be changed after the first build/push.

If this PR gets merged, one would possible need to update the release routine, as everything docker related is now done by GitHub.

You can see my test images here.
Would close #902

@zadam zadam merged commit 8ef4b2b into zadam:master Oct 14, 2021
@zadam
Copy link
Owner

zadam commented Oct 14, 2021

Thanks, that looks very useful! I will test it with next release.

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

Successfully merging this pull request may close these issues.

The latest available Docker image for ARM is v0.38
2 participants