{"action":"created","comment":{"url":"https://api.github.com/repos/wercker/wercker/pulls/comments/57130528","id":57130528,"diff_hunk":"@@ -538,11 +519,14 @@ func (b *DockerBox) Fetch(ctx context.Context, env *util.Environment) (*docker.I\n \t\t// Registry:      \"docker.tsuru.io\",\n \t\tOutputStream:  w,\n \t\tRawJSONStream: true,\n-\t\tRepository:    env.Interpolate(b.repository),\n+\t\tRepository:    authenticator.Repository(env.Interpolate(b.repository)),\n \t\tTag:           env.Interpolate(b.tag),\n \t}\n-\n-\terr = client.PullImage(options, auth)\n+\tauthConfig := docker.AuthConfiguration{\n+\t\tUsername: authenticator.Username(),","path":"docker/box.go","position":55,"original_position":55,"commit_id":"82f3b3cddda4f0e40577053c01a945a44169acf4","original_commit_id":"82f3b3cddda4f0e40577053c01a945a44169acf4","user":{"login":"hatchan","id":202981,"avatar_url":"https://avatars.githubusercontent.com/u/202981?v=3","gravatar_id":"","url":"https://api.github.com/users/hatchan","html_url":"https://github.com/hatchan","followers_url":"https://api.github.com/users/hatchan/followers","following_url":"https://api.github.com/users/hatchan/following{/other_user}","gists_url":"https://api.github.com/users/hatchan/gists{/gist_id}","starred_url":"https://api.github.com/users/hatchan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hatchan/subscriptions","organizations_url":"https://api.github.com/users/hatchan/orgs","repos_url":"https://api.github.com/users/hatchan/repos","events_url":"https://api.github.com/users/hatchan/events{/privacy}","received_events_url":"https://api.github.com/users/hatchan/received_events","type":"User","site_admin":false},"body":"shouldn't these also be put through `env.Interpolate`? Or is that already done?","created_at":"2016-03-23T09:35:53Z","updated_at":"2016-03-23T09:35:53Z","html_url":"https://github.com/wercker/wercker/pull/126#discussion_r57130528","pull_request_url":"https://api.github.com/repos/wercker/wercker/pulls/126","_links":{"self":{"href":"https://api.github.com/repos/wercker/wercker/pulls/comments/57130528"},"html":{"href":"https://github.com/wercker/wercker/pull/126#discussion_r57130528"},"pull_request":{"href":"https://api.github.com/repos/wercker/wercker/pulls/126"}}},"pull_request":{"url":"https://api.github.com/repos/wercker/wercker/pulls/126","id":63819193,"html_url":"https://github.com/wercker/wercker/pull/126","diff_url":"https://github.com/wercker/wercker/pull/126.diff","patch_url":"https://github.com/wercker/wercker/pull/126.patch","issue_url":"https://api.github.com/repos/wercker/wercker/issues/126","number":126,"state":"open","locked":false,"title":"WIP: Allow push and pull from ECR and docker v2 ","user":{"login":"faiq","id":5673456,"avatar_url":"https://avatars.githubusercontent.com/u/5673456?v=3","gravatar_id":"","url":"https://api.github.com/users/faiq","html_url":"https://github.com/faiq","followers_url":"https://api.github.com/users/faiq/followers","following_url":"https://api.github.com/users/faiq/following{/other_user}","gists_url":"https://api.github.com/users/faiq/gists{/gist_id}","starred_url":"https://api.github.com/users/faiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faiq/subscriptions","organizations_url":"https://api.github.com/users/faiq/orgs","repos_url":"https://api.github.com/users/faiq/repos","events_url":"https://api.github.com/users/faiq/events{/privacy}","received_events_url":"https://api.github.com/users/faiq/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-23T01:29:16Z","updated_at":"2016-03-23T09:35:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"03880f1438c99a6fe52942af49bf25ad14952c0e","assignee":{"login":"mwhooker","id":15618,"avatar_url":"https://avatars.githubusercontent.com/u/15618?v=3","gravatar_id":"","url":"https://api.github.com/users/mwhooker","html_url":"https://github.com/mwhooker","followers_url":"https://api.github.com/users/mwhooker/followers","following_url":"https://api.github.com/users/mwhooker/following{/other_user}","gists_url":"https://api.github.com/users/mwhooker/gists{/gist_id}","starred_url":"https://api.github.com/users/mwhooker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwhooker/subscriptions","organizations_url":"https://api.github.com/users/mwhooker/orgs","repos_url":"https://api.github.com/users/mwhooker/repos","events_url":"https://api.github.com/users/mwhooker/events{/privacy}","received_events_url":"https://api.github.com/users/mwhooker/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/wercker/wercker/pulls/126/commits","review_comments_url":"https://api.github.com/repos/wercker/wercker/pulls/126/comments","review_comment_url":"https://api.github.com/repos/wercker/wercker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wercker/wercker/issues/126/comments","statuses_url":"https://api.github.com/repos/wercker/wercker/statuses/82f3b3cddda4f0e40577053c01a945a44169acf4","head":{"label":"wercker:faiq-use-docker-auth-lib","ref":"faiq-use-docker-auth-lib","sha":"82f3b3cddda4f0e40577053c01a945a44169acf4","user":{"login":"wercker","id":1695193,"avatar_url":"https://avatars.githubusercontent.com/u/1695193?v=3","gravatar_id":"","url":"https://api.github.com/users/wercker","html_url":"https://github.com/wercker","followers_url":"https://api.github.com/users/wercker/followers","following_url":"https://api.github.com/users/wercker/following{/other_user}","gists_url":"https://api.github.com/users/wercker/gists{/gist_id}","starred_url":"https://api.github.com/users/wercker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wercker/subscriptions","organizations_url":"https://api.github.com/users/wercker/orgs","repos_url":"https://api.github.com/users/wercker/repos","events_url":"https://api.github.com/users/wercker/events{/privacy}","received_events_url":"https://api.github.com/users/wercker/received_events","type":"Organization","site_admin":false},"repo":{"id":50553550,"name":"wercker","full_name":"wercker/wercker","owner":{"login":"wercker","id":1695193,"avatar_url":"https://avatars.githubusercontent.com/u/1695193?v=3","gravatar_id":"","url":"https://api.github.com/users/wercker","html_url":"https://github.com/wercker","followers_url":"https://api.github.com/users/wercker/followers","following_url":"https://api.github.com/users/wercker/following{/other_user}","gists_url":"https://api.github.com/users/wercker/gists{/gist_id}","starred_url":"https://api.github.com/users/wercker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wercker/subscriptions","organizations_url":"https://api.github.com/users/wercker/orgs","repos_url":"https://api.github.com/users/wercker/repos","events_url":"https://api.github.com/users/wercker/events{/privacy}","received_events_url":"https://api.github.com/users/wercker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wercker/wercker","description":"The Wercker CLI can be used to execute pipelines locally for both local development and easy introspection.","fork":false,"url":"https://api.github.com/repos/wercker/wercker","forks_url":"https://api.github.com/repos/wercker/wercker/forks","keys_url":"https://api.github.com/repos/wercker/wercker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wercker/wercker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wercker/wercker/teams","hooks_url":"https://api.github.com/repos/wercker/wercker/hooks","issue_events_url":"https://api.github.com/repos/wercker/wercker/issues/events{/number}","events_url":"https://api.github.com/repos/wercker/wercker/events","assignees_url":"https://api.github.com/repos/wercker/wercker/assignees{/user}","branches_url":"https://api.github.com/repos/wercker/wercker/branches{/branch}","tags_url":"https://api.github.com/repos/wercker/wercker/tags","blobs_url":"https://api.github.com/repos/wercker/wercker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wercker/wercker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wercker/wercker/git/refs{/sha}","trees_url":"https://api.github.com/repos/wercker/wercker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wercker/wercker/statuses/{sha}","languages_url":"https://api.github.com/repos/wercker/wercker/languages","stargazers_url":"https://api.github.com/repos/wercker/wercker/stargazers","contributors_url":"https://api.github.com/repos/wercker/wercker/contributors","subscribers_url":"https://api.github.com/repos/wercker/wercker/subscribers","subscription_url":"https://api.github.com/repos/wercker/wercker/subscription","commits_url":"https://api.github.com/repos/wercker/wercker/commits{/sha}","git_commits_url":"https://api.github.com/repos/wercker/wercker/git/commits{/sha}","comments_url":"https://api.github.com/repos/wercker/wercker/comments{/number}","issue_comment_url":"https://api.github.com/repos/wercker/wercker/issues/comments{/number}","contents_url":"https://api.github.com/repos/wercker/wercker/contents/{+path}","compare_url":"https://api.github.com/repos/wercker/wercker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wercker/wercker/merges","archive_url":"https://api.github.com/repos/wercker/wercker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wercker/wercker/downloads","issues_url":"https://api.github.com/repos/wercker/wercker/issues{/number}","pulls_url":"https://api.github.com/repos/wercker/wercker/pulls{/number}","milestones_url":"https://api.github.com/repos/wercker/wercker/milestones{/number}","notifications_url":"https://api.github.com/repos/wercker/wercker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wercker/wercker/labels{/name}","releases_url":"https://api.github.com/repos/wercker/wercker/releases{/id}","deployments_url":"https://api.github.com/repos/wercker/wercker/deployments","created_at":"2016-01-28T03:55:20Z","updated_at":"2016-03-22T07:59:20Z","pushed_at":"2016-03-23T02:06:09Z","git_url":"git://github.com/wercker/wercker.git","ssh_url":"git@github.com:wercker/wercker.git","clone_url":"https://github.com/wercker/wercker.git","svn_url":"https://github.com/wercker/wercker","homepage":"http://wercker.com","size":798,"stargazers_count":311,"watchers_count":311,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":49,"forks":21,"open_issues":49,"watchers":311,"default_branch":"master"}},"base":{"label":"wercker:master","ref":"master","sha":"8a5b89c4b7bd0837b2c253b12ec64b60a9d2344f","user":{"login":"wercker","id":1695193,"avatar_url":"https://avatars.githubusercontent.com/u/1695193?v=3","gravatar_id":"","url":"https://api.github.com/users/wercker","html_url":"https://github.com/wercker","followers_url":"https://api.github.com/users/wercker/followers","following_url":"https://api.github.com/users/wercker/following{/other_user}","gists_url":"https://api.github.com/users/wercker/gists{/gist_id}","starred_url":"https://api.github.com/users/wercker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wercker/subscriptions","organizations_url":"https://api.github.com/users/wercker/orgs","repos_url":"https://api.github.com/users/wercker/repos","events_url":"https://api.github.com/users/wercker/events{/privacy}","received_events_url":"https://api.github.com/users/wercker/received_events","type":"Organization","site_admin":false},"repo":{"id":50553550,"name":"wercker","full_name":"wercker/wercker","owner":{"login":"wercker","id":1695193,"avatar_url":"https://avatars.githubusercontent.com/u/1695193?v=3","gravatar_id":"","url":"https://api.github.com/users/wercker","html_url":"https://github.com/wercker","followers_url":"https://api.github.com/users/wercker/followers","following_url":"https://api.github.com/users/wercker/following{/other_user}","gists_url":"https://api.github.com/users/wercker/gists{/gist_id}","starred_url":"https://api.github.com/users/wercker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wercker/subscriptions","organizations_url":"https://api.github.com/users/wercker/orgs","repos_url":"https://api.github.com/users/wercker/repos","events_url":"https://api.github.com/users/wercker/events{/privacy}","received_events_url":"https://api.github.com/users/wercker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wercker/wercker","description":"The Wercker CLI can be used to execute pipelines locally for both local development and easy introspection.","fork":false,"url":"https://api.github.com/repos/wercker/wercker","forks_url":"https://api.github.com/repos/wercker/wercker/forks","keys_url":"https://api.github.com/repos/wercker/wercker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wercker/wercker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wercker/wercker/teams","hooks_url":"https://api.github.com/repos/wercker/wercker/hooks","issue_events_url":"https://api.github.com/repos/wercker/wercker/issues/events{/number}","events_url":"https://api.github.com/repos/wercker/wercker/events","assignees_url":"https://api.github.com/repos/wercker/wercker/assignees{/user}","branches_url":"https://api.github.com/repos/wercker/wercker/branches{/branch}","tags_url":"https://api.github.com/repos/wercker/wercker/tags","blobs_url":"https://api.github.com/repos/wercker/wercker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wercker/wercker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wercker/wercker/git/refs{/sha}","trees_url":"https://api.github.com/repos/wercker/wercker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wercker/wercker/statuses/{sha}","languages_url":"https://api.github.com/repos/wercker/wercker/languages","stargazers_url":"https://api.github.com/repos/wercker/wercker/stargazers","contributors_url":"https://api.github.com/repos/wercker/wercker/contributors","subscribers_url":"https://api.github.com/repos/wercker/wercker/subscribers","subscription_url":"https://api.github.com/repos/wercker/wercker/subscription","commits_url":"https://api.github.com/repos/wercker/wercker/commits{/sha}","git_commits_url":"https://api.github.com/repos/wercker/wercker/git/commits{/sha}","comments_url":"https://api.github.com/repos/wercker/wercker/comments{/number}","issue_comment_url":"https://api.github.com/repos/wercker/wercker/issues/comments{/number}","contents_url":"https://api.github.com/repos/wercker/wercker/contents/{+path}","compare_url":"https://api.github.com/repos/wercker/wercker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wercker/wercker/merges","archive_url":"https://api.github.com/repos/wercker/wercker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wercker/wercker/downloads","issues_url":"https://api.github.com/repos/wercker/wercker/issues{/number}","pulls_url":"https://api.github.com/repos/wercker/wercker/pulls{/number}","milestones_url":"https://api.github.com/repos/wercker/wercker/milestones{/number}","notifications_url":"https://api.github.com/repos/wercker/wercker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wercker/wercker/labels{/name}","releases_url":"https://api.github.com/repos/wercker/wercker/releases{/id}","deployments_url":"https://api.github.com/repos/wercker/wercker/deployments","created_at":"2016-01-28T03:55:20Z","updated_at":"2016-03-22T07:59:20Z","pushed_at":"2016-03-23T02:06:09Z","git_url":"git://github.com/wercker/wercker.git","ssh_url":"git@github.com:wercker/wercker.git","clone_url":"https://github.com/wercker/wercker.git","svn_url":"https://github.com/wercker/wercker","homepage":"http://wercker.com","size":798,"stargazers_count":311,"watchers_count":311,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":49,"forks":21,"open_issues":49,"watchers":311,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wercker/wercker/pulls/126"},"html":{"href":"https://github.com/wercker/wercker/pull/126"},"issue":{"href":"https://api.github.com/repos/wercker/wercker/issues/126"},"comments":{"href":"https://api.github.com/repos/wercker/wercker/issues/126/comments"},"review_comments":{"href":"https://api.github.com/repos/wercker/wercker/pulls/126/comments"},"review_comment":{"href":"https://api.github.com/repos/wercker/wercker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wercker/wercker/pulls/126/commits"},"statuses":{"href":"https://api.github.com/repos/wercker/wercker/statuses/82f3b3cddda4f0e40577053c01a945a44169acf4"}}}}