{"action":"created","issue":{"url":"https://api.github.com/repos/sbilinski/sbt-ecr/issues/2","repository_url":"https://api.github.com/repos/sbilinski/sbt-ecr","labels_url":"https://api.github.com/repos/sbilinski/sbt-ecr/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/sbilinski/sbt-ecr/issues/2/comments","events_url":"https://api.github.com/repos/sbilinski/sbt-ecr/issues/2/events","html_url":"https://github.com/sbilinski/sbt-ecr/issues/2","id":203551750,"number":2,"title":"Cannot push image","user":{"login":"dmytro","id":81929,"avatar_url":"https://avatars.githubusercontent.com/u/81929?v=3","gravatar_id":"","url":"https://api.github.com/users/dmytro","html_url":"https://github.com/dmytro","followers_url":"https://api.github.com/users/dmytro/followers","following_url":"https://api.github.com/users/dmytro/following{/other_user}","gists_url":"https://api.github.com/users/dmytro/gists{/gist_id}","starred_url":"https://api.github.com/users/dmytro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmytro/subscriptions","organizations_url":"https://api.github.com/users/dmytro/orgs","repos_url":"https://api.github.com/users/dmytro/repos","events_url":"https://api.github.com/users/dmytro/events{/privacy}","received_events_url":"https://api.github.com/users/dmytro/received_events","type":"User","site_admin":false},"labels":[{"id":442765126,"url":"https://api.github.com/repos/sbilinski/sbt-ecr/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-27T03:38:59Z","updated_at":"2017-01-31T17:57:28Z","closed_at":null,"body":"I'm using version `0.3.0` of the `sbt-ecr` plugin, but I'm not able to push the image. Two other commands `ecr:login` and `ecr:createRepository` work OK, but push apparently does nothing.\r\n\r\nI am using Docker 1.13 on a Mac, and my suspicion that tagging https://github.com/sbilinski/sbt-ecr/blob/master/src/main/scala/sbtecr/EcrPlugin.scala#L57) step does not work. I am not a Scala person, but if I understand this code correctly, it should add tag to the the image with the registry name prepended.\r\n\r\nWhen I run `docker images` after `ecr:push` image is not tagged:\r\n\r\n```\r\n$ docker images\r\nREPOSITORY                                          TAG                 IMAGE ID            CREATED             SIZE\r\nmyimage                                             latest              75e222321012        4 minutes ago       257 MB\r\n<aws_account>.dkr.ecr.us-east-1.amazonaws.com/java  latest              d5c4c8395ef9        3 months ago        174 MB\r\n```\r\n\r\nThis is my configuration:\r\n\r\n```\r\nname := \"myimage\"\r\nversion := \"latest\"\r\n\r\npackageName in Docker := \"myimage\"\r\nversion     in Docker := version.value\r\n\r\ndockerBaseImage := \"<aws_account>.dkr.ecr.us-east-1.amazonaws.com/java:latest\"\r\ndockerExposedPorts := Seq(9000)\r\n\r\nimport com.amazonaws.regions.{Region, Regions}\r\n\r\nregion           in ecr := Region.getRegion(Regions.US_EAST_1)\r\nrepositoryName   in ecr := (packageName in Docker).value\r\nlocalDockerImage in ecr := (packageName in Docker).value + \":\" + (version in Docker).value\r\n\r\naddCommandAlias(\"publish\", \";clean;compile;docker:publishLocal;ecr:createRepository;ecr:login;ecr:push\")\r\n```\r\n\r\nAnd docker version:\r\n\r\n```\r\n$ docker version                                                                                                                                                                                    U feature/build_with_jenkins:exco-corp-web/. 12:47:20\r\nClient:\r\n Version:      1.13.0\r\n API version:  1.25\r\n Go version:   go1.7.3\r\n Git commit:   49bf474\r\n Built:        Wed Jan 18 16:20:26 2017\r\n OS/Arch:      darwin/amd64\r\n\r\nServer:\r\n Version:      1.13.0\r\n API version:  1.25 (minimum version 1.12)\r\n Go version:   go1.7.3\r\n Git commit:   49bf474\r\n Built:        Wed Jan 18 16:20:26 2017\r\n OS/Arch:      linux/amd64\r\n Experimental: true\r\n```"},"comment":{"url":"https://api.github.com/repos/sbilinski/sbt-ecr/issues/comments/276440317","html_url":"https://github.com/sbilinski/sbt-ecr/issues/2#issuecomment-276440317","issue_url":"https://api.github.com/repos/sbilinski/sbt-ecr/issues/2","id":276440317,"user":{"login":"sbilinski","id":1932463,"avatar_url":"https://avatars.githubusercontent.com/u/1932463?v=3","gravatar_id":"","url":"https://api.github.com/users/sbilinski","html_url":"https://github.com/sbilinski","followers_url":"https://api.github.com/users/sbilinski/followers","following_url":"https://api.github.com/users/sbilinski/following{/other_user}","gists_url":"https://api.github.com/users/sbilinski/gists{/gist_id}","starred_url":"https://api.github.com/users/sbilinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbilinski/subscriptions","organizations_url":"https://api.github.com/users/sbilinski/orgs","repos_url":"https://api.github.com/users/sbilinski/repos","events_url":"https://api.github.com/users/sbilinski/events{/privacy}","received_events_url":"https://api.github.com/users/sbilinski/received_events","type":"User","site_admin":false},"created_at":"2017-01-31T17:57:28Z","updated_at":"2017-01-31T17:57:28Z","body":"Thanks for the detailed description. Unfortunately, I'm unable to reproduce this issue in my local environment.  \r\n\r\nFew things that come to mind:\r\n\r\n  * Which SBT version are you using? I've tested your build with `0.13.12` and it works as expected. \r\n  * Check if `ecr:push` points to the right place (i.e. `inspect ecr:push`). \r\n  * Is there anything else in your project configuration, that could have impact on this (plugins, settings)?\r\n"}}
{"actor":{"display_login":"sbilinski"}}