Build Docker images for various platforms in a matrix strategy #67
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.
🗣 Description
This pull request modifies the
build.yml
GitHub Actions workflow to build the Docker images for the various supported platforms in a matrix strategy. The idea for this change was motivated by a conversation between @mcdonnnj and me.N.B.: This pull request is somewhat of a breaking change, as the matrix strategy breaks the previous single monolithic multi-platform build into a bundle of individual single-platform builds.
N.B.: I have done away with the
PLATFORMS
environment variable and explicitly listed the available platforms in the GitHub Actions workflow yml file. This is because I didn't see a way to easily convert a comma-delimited list of platforms stored in an environment variable into a YML list inside the workflow. If others are able to figure that out, and we think there is benefit in having the platforms stored in an environment variable, then I'm not opposed to changing it back.💭 Motivation and context
This change makes it easier to temporarily drop support for a failing platform that we cannot fix, as we are currently experiencing with #64.
🧪 Testing
All
pre-commit
hooks and GitHub Actions pass.✅ Checklist