feat: push major, minor and patch versions for Docker#3086
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the Docker image publishing flow to additionally publish major and minor version tags alongside the existing patch (full ${project.version}) and latest tags, enabling consumers to pin images to X or X.Y.
Changes:
- Update Docker build/push scripts to accept and apply major/minor/patch/latest tags.
- Add Maven version parsing (
build-helper-maven-plugin:parse-version) to derivemajorVersion/minorVersionfor tag arguments. - Introduce a parent POM property for
build-helper-maven-pluginversion management.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
pom.xml |
Adds a managed version property for build-helper-maven-plugin. |
docker/pom.xml |
Passes major/minor/patch tags into Docker build/push scripts; adds version parsing execution (but currently only in one profile). |
docker/build-docker-image.sh |
Builds a locally loaded image tagged with patch/latest/major/minor. |
docker/push-docker-image.sh |
Builds and pushes multi-arch images tagged with patch/latest/major/minor. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
0eae54e to
a0faea3
Compare
a0faea3 to
28d8237
Compare
28d8237 to
3295841
Compare
3295841 to
0c906eb
Compare
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.
Description
push major, minor and patch versions for Docker containers
Related Issue
#3058
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: