docker-maven-plugin
docker-maven-plugin copied to clipboard
fix: support skipping tags
Motivation
I'm using the buildx to build the multiple-arch images, when I use -Ddocker.skip.tag=true to skip the tag, this plugin still tags the image.
Changes
- Add skip tag to the image level by
<skipTag> - When the skip tag is
true, the plugin will not tag the image on the build and buildx stage
Doc
The previous document included <skipTag>, so I did not add the document.
@rohanKanojia Thank you for your review, this PR has been updated, could you review this PR again?
MacOS ci failed, what do you suggest, it seems to be unable to pull pg image.
@nodece : Could you please address Sonar Code smells that seem applicable?
@rohanKanojia Done.
should I upgrade the postgres image? It looks blocked my PR.
@nodece : Could you please rebase this one?
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
95.8% Coverage on New Code
0.0% Duplication on New Code
@nodece : Thanks, looks good to be merged. Only thing I see missing is documentation. Could you please add documentation for this new field skipTags in plugin and image build configuration?
Could you also add an entry for this change in doc/changelog.md?
@nodece : Thanks, looks good to be merged. Only thing I see missing is documentation. Could you please add documentation for this new field
skipTagsin plugin and image build configuration?
Please see the PR description, I can also add the more description about when tag the image.
Could you also add an entry for this change in doc/changelog.md?
I can add skipTag parameter description to the changlong.
You're right. Documentation is already there for plugin configuration skipTag but I think we need to add it for image level skipTag.
You're right. Documentation is already there for plugin configuration
skipTagbut I think we need to add it for image level skipTag.
The skipTag parameter exists in the plugin configuration and image levels(docker:build), could you check this documentation?
Please see https://dmp.fabric8.io/#build-configuration
@nodece : oh, that's quite strange. I see that this field got added in this PR.
The documentation was wrongly added in https://github.com/fabric8io/docker-maven-plugin/pull/954