-
Notifications
You must be signed in to change notification settings - Fork 0
build sample multiplatform images for testing #3
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
base: main
Are you sure you want to change the base?
Conversation
awilfox
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me other than a tiny style nit, but Dan has much more familiarity with the intricacies of this, so I'd like to wait for his review too before merging.
r+ from me after renaming of task.
e7267e7 to
cce9b5d
Compare
danschmidt5189
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just one question about the matrix "platform" param.
| uses: docker/build-push-action@v6 | ||
| with: | ||
| push: true | ||
| platforms: ${{ matrix.platform }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this necessary because, without it, Docker infers an overly-specific platform from the current runner?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think so - iirc, this is how the Docker docs for GHA parallel multiplatform builds suggest how to do it.
d60f6b1 to
8045cf8
Compare
* fix multiplatform builds ref BerkeleyLibrary/gha-testing#3 * copy out build artifacts
a slight variation avplayer's workflows. tldr: we were building multiplatform images, but they didn't get pushed when we were pushing the manifests. by definition,
docker pullonly pulls a single platform, and when wedocker pushed our tagged images, we were only pushing tags for a single architecture. we need to usedocker buildx imagetools createhere instead.