Closed anton-johansson closed 6 years ago
One idea: instead of having a separate goal, we could check if we have imageTags
specified in our POM, and if so just call Utils.pushImageTag
instead of Utils.pushImage
. This makes a lot more sense to me, but it would change the behavior, and break backwards-compatibility. :(
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
In pull request #127, support for pushing only tags specified in the POM was added, which is great! However, when I have a configuration that binds to the different lifecycle phases, like this:
... it doesn't really work that well. I want to build my images in the
package
phase, but I don't want to build them again in mydeploy
phase. But I still want a simple way of executing my phases ('mvn packageor
mvn deploy`).How to reproduce
Use the Maven configuration above, and all tags founds for that image name will be pushed.
Software:
17.03.0-ce, build 60ccb22
(not sure if the plug-in uses it?). Not sure about or Docker registry. We're using Nexus 3.3.0.0.4.13
3.3.9