{"action":"created","issue":{"url":"https://api.github.com/repos/fabric8io/docker-maven-plugin/issues/799","repository_url":"https://api.github.com/repos/fabric8io/docker-maven-plugin","labels_url":"https://api.github.com/repos/fabric8io/docker-maven-plugin/issues/799/labels{/name}","comments_url":"https://api.github.com/repos/fabric8io/docker-maven-plugin/issues/799/comments","events_url":"https://api.github.com/repos/fabric8io/docker-maven-plugin/issues/799/events","html_url":"https://github.com/fabric8io/docker-maven-plugin/issues/799","id":236393609,"number":799,"title":"Always have image tag with the project.version","user":{"login":"meggarr","id":4507985,"avatar_url":"https://avatars2.githubusercontent.com/u/4507985?v=4","gravatar_id":"","url":"https://api.github.com/users/meggarr","html_url":"https://github.com/meggarr","followers_url":"https://api.github.com/users/meggarr/followers","following_url":"https://api.github.com/users/meggarr/following{/other_user}","gists_url":"https://api.github.com/users/meggarr/gists{/gist_id}","starred_url":"https://api.github.com/users/meggarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meggarr/subscriptions","organizations_url":"https://api.github.com/users/meggarr/orgs","repos_url":"https://api.github.com/users/meggarr/repos","events_url":"https://api.github.com/users/meggarr/events{/privacy}","received_events_url":"https://api.github.com/users/meggarr/received_events","type":"User","site_admin":false},"labels":[{"id":88359286,"url":"https://api.github.com/repos/fabric8io/docker-maven-plugin/labels/bug","name":"bug","color":"f7c6c7","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-06-16T06:39:47Z","updated_at":"2017-09-12T13:41:11Z","closed_at":null,"author_association":"NONE","body":"### Description\r\nWhen we are working with Docker registry provided by Nexus for release, the registry disabled the \"redeploy\", so every image with the same version/tag can only be pushed once.\r\n\r\nBut the `docker-maven-plugin` always generate the tag with the POM's project version. E.g. the POM is version 1.0, and with a continuous build number as 8, I specify the tag with\r\n```\r\n<tags>\r\n  <tag>${project.version}.${build.number}</tag>\r\n</tags>\r\n```\r\nThe plugin always generates two tags `1.0` and `1.0.8`, and tries to push both to registry. Apparently the push of `1.0` must fail, since it's already pushed to registry together with previous builds, like `1.0.1`.\r\n\r\nI think it needs a way to disable the default tag of `project.version`, so I can specify only the intended tags.\r\n\r\n### Info\r\n\r\n* d-m-p version : 0.20.1\r\n* Maven version (`mvn -v`) : 3.0.5\r\n* Docker version : 1.12.6\r\n"},"comment":{"url":"https://api.github.com/repos/fabric8io/docker-maven-plugin/issues/comments/328856722","html_url":"https://github.com/fabric8io/docker-maven-plugin/issues/799#issuecomment-328856722","issue_url":"https://api.github.com/repos/fabric8io/docker-maven-plugin/issues/799","id":328856722,"user":{"login":"meggarr","id":4507985,"avatar_url":"https://avatars2.githubusercontent.com/u/4507985?v=4","gravatar_id":"","url":"https://api.github.com/users/meggarr","html_url":"https://github.com/meggarr","followers_url":"https://api.github.com/users/meggarr/followers","following_url":"https://api.github.com/users/meggarr/following{/other_user}","gists_url":"https://api.github.com/users/meggarr/gists{/gist_id}","starred_url":"https://api.github.com/users/meggarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meggarr/subscriptions","organizations_url":"https://api.github.com/users/meggarr/orgs","repos_url":"https://api.github.com/users/meggarr/repos","events_url":"https://api.github.com/users/meggarr/events{/privacy}","received_events_url":"https://api.github.com/users/meggarr/received_events","type":"User","site_admin":false},"created_at":"2017-09-12T13:41:11Z","updated_at":"2017-09-12T13:41:11Z","author_association":"NONE","body":"Yep, I agree with that. The tag with the name is (always) the default/formal tag, and tags in `<tags>` element are optional and can be skipped via `-Ddocker.skip.tag=true` in `mvn` command line. So my solution is like\r\n```\r\n<name>myimage:${project.version}.${build.number}</name>\r\n<build>\r\n  <tags>\r\n    <tag>latest</tag>\r\n  </tags>\r\n</build\r\n```\r\nWhen it can only have one tag, `docker.skip.tag=true` is in command line. Thanks!"}}
{"actor":{"display_login":"meggarr"}}