Repository navigation
Conversation
5 tasks done
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.
Summary
This PR enhances the
publish-container-image.ymlworkflow with architecture validation and dynamic architecture selection. Users can now specify which architectures to build (amd64, arm64, or both) when manually triggering the workflow, with comprehensive validation to ensure only valid architectures are processed.Changes
1. Architecture Input Validation
validate-architectures(lines 103-160)amd64,arm642. Dynamic Build Matrix
buildjob now uses dynamic matrix from validationmatrix: ${{ fromJson(needs.validate-architectures.outputs.matrix) }}3. Smart Manifest Creation
manifestjob dynamically handles built architectureslatesttag only for tag pushes with both architectureslatesttag for single-architecture or manual workflow runs4. Bug Fixes
'amd64,arm'→'amd64,arm64''ubuntu-22.04-arm'→'ubuntu-22.04-arm64'Usage Examples
Manual Workflow Dispatch
Build only amd64:
Build only arm64:
Build both (default):
Tag Pushes
amd64,arm64)latesttagValidation Behavior
Valid Inputs
amd64arm64amd64,arm64arm64,amd64amd64, arm64(spaces are removed)Benefits
Testing
The changes can be tested by:
Documentation Updated
Related Issues
Closes #[issue-number] (if applicable)