-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Implement multiplatform builds #18
Conversation
Thanks for this! I've changed the branch target for this PR, just want to be doubly sure it works before it goes into main, and doesn't time out or anything. The prettier check has failed. Are you able to fix this with What would also be great is if we only added a |
Hi! I'll get right on that prettier check. The version should be handled autmatically by the Looking at the documentation, the default behaviour is to add tags for PR, branches, releases, all kinds of pushed tags and workflow dispatches, however it can be customized just like you pointed out. If you'd like i'll update the workflow to handle versioning properly and give it a spin. I opened this since I like to try all the selfhosted software I can find on my Pi4, and for this project creating a multiplatform image was fairly easy. |
Thanks @Thanzex ,
I think what we want here is the semver config described here: https://github.com/docker/metadata-action#semver So the expected tags would be:
|
I ran a few test with this configuration and it seems to handle tags just ike you wanted. |
Thanks, just giving it a whirl now! |
@mgdigital in the logs i see that the assigned tag is not I'll run a few more tests and see what's what |
I think that's the effect of using the semver config. It strips out the I've got a beta build running here, if that works I'll get it merged to main and do a https://github.com/bitmagnet-io/bitmagnet/actions/runs/6432163848/job/17466443915 Thanks for your help |
No problems! |
Oh sorry right I see you added the |
Hmm so it has added the I wonder if the You weren't wrong about the build taking a long time! |
* Implement multiplatform builds (#18) * Initial multiplatform build * Change image name for pr * Fix prettier errors * Handle semver --------- Co-authored-by: Francesco Bruno <f.bruno.dev@gmail.com> * Avoid dirty version number * Remove v prefix * Add tags option * Fix tags? --------- Co-authored-by: Francesco Bruno <b.frenc@hotmail.it> Co-authored-by: Francesco Bruno <f.bruno.dev@gmail.com>
* Implement multiplatform builds (#18) (#20) * Implement multiplatform builds (#18) * Initial multiplatform build * Change image name for pr * Fix prettier errors * Handle semver --------- Co-authored-by: Francesco Bruno <f.bruno.dev@gmail.com> * Avoid dirty version number * Remove v prefix * Add tags option * Fix tags? --------- Co-authored-by: Francesco Bruno <b.frenc@hotmail.it> Co-authored-by: Francesco Bruno <f.bruno.dev@gmail.com> * parsing uint from env variable (#26) * Use torrent_contents.info_hash instead of torrent_contents.id in Torznab result (#30) * Add nil check (#31) * Fix error message re: meta info from any pers (#34) Co-authored-by: mgdigital <mgdigital@users.noreply.github.com> * `docker-compose` is deprecated, use `docker compose` (#32) Co-authored-by: mgdigital <mgdigital@users.noreply.github.com> * Update issue templates (#33) * Update issue templates --------- Co-authored-by: Francesco Bruno <b.frenc@hotmail.it> Co-authored-by: Francesco Bruno <f.bruno.dev@gmail.com> Co-authored-by: myyc <myyc@users.noreply.github.com> Co-authored-by: Niklas <niklas.brunberg@cag.se>
I changed the ghcr action as per Docker documentation to build docker images for multiple platforms in parallel.
The ARM images take considerably longer to build, as visible in my test run, but even for the free tier should be acceptable