PR #387 introduced a regression which comes in rare situation like mine. The push of them will not work for a private registry with port but without explicit tag (implicit latest).
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
PR #387 introduced a regression which comes in rare situation like mine. The push of them will not work for a private registry with port but without explicit tag (implicit latest).
How to reproduce
Use this config
And run
mvn com.spotify:docker-maven-plugin:1.2.0:push
What do you expect
Plugin pushes
private.registry.com:1234/image:latest
,private.registry.com:1234/image:project-version
What happened instead
Latest is pushed, but the tagged version cannot be pushed because plugin tries to push
private.registry.com:project-version
, which is supposed to be on docker hub. I suppose the bug is here: https://github.com/spotify/docker-maven-plugin/blob/master/src/main/java/com/spotify/docker/Utils.java#L126Software:
Workaround
Specify latest tag explicitly like this: