Implement multi-arch container build with native runners#1328
Merged
Conversation
db3f6a7 to
59b7f42
Compare
We adjust the container build GitHub workflow to use a matrix job on `ubuntu-24.04` and `ubuntu-24.04-arm` to build the container image and have a subsequent job which creates the multi-arch image from the two images built by the matrix job. Additionally, the commit factors out the version generation for the Python package and the container and the creation of the GitHub release into separate jobs. Note that the workflow pushes `latest` and tagged containers to docker.io. However, the build matrix job always only pushes to ghcr.io and the merge job will copy the final images from ghcr.io to docker.io if necessary. The implementation is inspired by https://github.com/sredevopsorg/multi-arch-docker-github-workflow/blob/main/.github/workflows/multi-build.yaml
bastjan
approved these changes
Mar 24, 2026
This allows us to avoid the bad switch reimplementation for the `build.runs-on` value.
59b7f42 to
adbb812
Compare
This was referenced Mar 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We adjust the container build GitHub workflow to use a matrix job on
ubuntu-24.04andubuntu-24.04-armto build the container image and have a subsequent job which creates the multi-arch image from the two images built by the matrix job.Additionally, the commit factors out the version generation for the Python package and the container and the creation of the GitHub release into separate jobs.
Note that the workflow pushes
latestand tagged containers to docker.io. However, the build matrix job always only pushes to ghcr.io and the merge job will copy the final images from ghcr.io to docker.io if necessary.Inspired by https://github.com/sredevopsorg/multi-arch-docker-github-workflow/blob/main/.github/workflows/multi-build.yaml
Follow-up for #1292
Checklist
bug,enhancement,documentation,change,breaking,dependency,internalas they show up in the changelog