{"action":"opened","issue":{"url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/275","repository_url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin","labels_url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/275/labels{/name}","comments_url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/275/comments","events_url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/275/events","html_url":"https://github.com/bmuschko/gradle-docker-plugin/issues/275","id":175377000,"number":275,"title":"DockerBuildImage fails to pull public repo images if registryUsername registryPassword are present","user":{"login":"bitsofinfo","id":1743646,"avatar_url":"https://avatars.githubusercontent.com/u/1743646?v=3","gravatar_id":"","url":"https://api.github.com/users/bitsofinfo","html_url":"https://github.com/bitsofinfo","followers_url":"https://api.github.com/users/bitsofinfo/followers","following_url":"https://api.github.com/users/bitsofinfo/following{/other_user}","gists_url":"https://api.github.com/users/bitsofinfo/gists{/gist_id}","starred_url":"https://api.github.com/users/bitsofinfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitsofinfo/subscriptions","organizations_url":"https://api.github.com/users/bitsofinfo/orgs","repos_url":"https://api.github.com/users/bitsofinfo/repos","events_url":"https://api.github.com/users/bitsofinfo/events{/privacy}","received_events_url":"https://api.github.com/users/bitsofinfo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-06T23:33:58Z","updated_at":"2016-09-06T23:33:58Z","closed_at":null,"body":"This used to work about ~ a month ago w/ this plugin, but now when I run it, `DockerBuildImage` fails to pull public repo images if `registryUsername` `registryPassword` project properties are present \r\n\r\n(I specify them via `-PregistryUsername=myPrivateRepoUsernameForDockerTagImage` etc syntax)\r\n\r\nI have a task like this\r\n\r\n```\r\n    task buildTagDockerImage(type: DockerTagImage) {\r\n        dependsOn buildDockerImage\r\n        targetImageId { buildDockerImage.getImageId() }\r\n\r\n        if (project.hasProperty(\"registryHost\")) {\r\n          repository = \"$registryHost/mypath/$project.name\"\r\n        }\r\n        if (project.hasProperty(\"imageTag\")) {\r\n          tag = project.imageTag\r\n        }\r\n\r\n    }\r\n```"}}
{"actor":{"display_login":"bitsofinfo"}}