{"action":"created","comment":{"url":"https://api.github.com/repos/mapbox/ecs-conex/pulls/comments/71641232","id":71641232,"diff_hunk":"@@ -66,21 +66,27 @@ function credentials() {\n   filepath=${1}\n   args=\"\"\n \n-  npmToken=$(printenv | grep NPMToken | sed 's/.*=//')\n-  if [[ -n $npmToken ]] && grep \"ARG NPMToken\" ${filepath} > /dev/null 2>&1; then\n-    args+=\"--build-arg NPMToken=${npmToken}\"\n+  if [[ -n ${NPMToken:-} ]] && grep \"ARG NPMToken\" ${filepath} > /dev/null 2>&1; then\n+    args+=\"--build-arg NPMToken=${NPMToken}\"\n   fi\n \n-  role=$(curl -s http://169.254.169.254/latest/meta-data/iam/security-credentials/)\n-  if [[ -z $role ]]; then\n+  role=$(curl -s http://169.254.169.254/latest/meta-data/iam/security-credentials/) || :\n+  if [[ -z $role ]] && [[ -n ${AWS_ACCESS_KEY_ID} ]]; then\n+    echo \"env creds\"","path":"utils.sh","position":15,"original_position":15,"commit_id":"e383187039ab0b7361d386090ae10f3b6706a037","original_commit_id":"e383187039ab0b7361d386090ae10f3b6706a037","user":{"login":"rclark","id":515424,"avatar_url":"https://avatars.githubusercontent.com/u/515424?v=3","gravatar_id":"","url":"https://api.github.com/users/rclark","html_url":"https://github.com/rclark","followers_url":"https://api.github.com/users/rclark/followers","following_url":"https://api.github.com/users/rclark/following{/other_user}","gists_url":"https://api.github.com/users/rclark/gists{/gist_id}","starred_url":"https://api.github.com/users/rclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rclark/subscriptions","organizations_url":"https://api.github.com/users/rclark/orgs","repos_url":"https://api.github.com/users/rclark/repos","events_url":"https://api.github.com/users/rclark/events{/privacy}","received_events_url":"https://api.github.com/users/rclark/received_events","type":"User","site_admin":false},"body":"note to self: remove these echos","created_at":"2016-07-21T03:10:48Z","updated_at":"2016-07-21T03:10:48Z","html_url":"https://github.com/mapbox/ecs-conex/pull/33#discussion_r71641232","pull_request_url":"https://api.github.com/repos/mapbox/ecs-conex/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/mapbox/ecs-conex/pulls/comments/71641232"},"html":{"href":"https://github.com/mapbox/ecs-conex/pull/33#discussion_r71641232"},"pull_request":{"href":"https://api.github.com/repos/mapbox/ecs-conex/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/mapbox/ecs-conex/pulls/33","id":78242364,"html_url":"https://github.com/mapbox/ecs-conex/pull/33","diff_url":"https://github.com/mapbox/ecs-conex/pull/33.diff","patch_url":"https://github.com/mapbox/ecs-conex/pull/33.patch","issue_url":"https://api.github.com/repos/mapbox/ecs-conex/issues/33","number":33,"state":"open","locked":false,"title":"Integration tests","user":{"login":"rclark","id":515424,"avatar_url":"https://avatars.githubusercontent.com/u/515424?v=3","gravatar_id":"","url":"https://api.github.com/users/rclark","html_url":"https://github.com/rclark","followers_url":"https://api.github.com/users/rclark/followers","following_url":"https://api.github.com/users/rclark/following{/other_user}","gists_url":"https://api.github.com/users/rclark/gists{/gist_id}","starred_url":"https://api.github.com/users/rclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rclark/subscriptions","organizations_url":"https://api.github.com/users/rclark/orgs","repos_url":"https://api.github.com/users/rclark/repos","events_url":"https://api.github.com/users/rclark/events{/privacy}","received_events_url":"https://api.github.com/users/rclark/received_events","type":"User","site_admin":false},"body":"- assert that the ecs-conex's Dockerfile can build an image\r\n- assert that running ecs-conex's image can build another repo's image\r\n\r\ncc @emilymdubois @jakepruitt \r\n\r\nfixes #28 \r\nfixes #1","created_at":"2016-07-21T00:44:53Z","updated_at":"2016-07-21T03:10:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"da0203fe3978a1ab213f44c6dd164180cae8eded","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mapbox/ecs-conex/pulls/33/commits","review_comments_url":"https://api.github.com/repos/mapbox/ecs-conex/pulls/33/comments","review_comment_url":"https://api.github.com/repos/mapbox/ecs-conex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mapbox/ecs-conex/issues/33/comments","statuses_url":"https://api.github.com/repos/mapbox/ecs-conex/statuses/e383187039ab0b7361d386090ae10f3b6706a037","head":{"label":"mapbox:integration-test","ref":"integration-test","sha":"e383187039ab0b7361d386090ae10f3b6706a037","user":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"repo":{"id":58424071,"name":"ecs-conex","full_name":"mapbox/ecs-conex","owner":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapbox/ecs-conex","description":"ECS Container Express","fork":false,"url":"https://api.github.com/repos/mapbox/ecs-conex","forks_url":"https://api.github.com/repos/mapbox/ecs-conex/forks","keys_url":"https://api.github.com/repos/mapbox/ecs-conex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapbox/ecs-conex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapbox/ecs-conex/teams","hooks_url":"https://api.github.com/repos/mapbox/ecs-conex/hooks","issue_events_url":"https://api.github.com/repos/mapbox/ecs-conex/issues/events{/number}","events_url":"https://api.github.com/repos/mapbox/ecs-conex/events","assignees_url":"https://api.github.com/repos/mapbox/ecs-conex/assignees{/user}","branches_url":"https://api.github.com/repos/mapbox/ecs-conex/branches{/branch}","tags_url":"https://api.github.com/repos/mapbox/ecs-conex/tags","blobs_url":"https://api.github.com/repos/mapbox/ecs-conex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapbox/ecs-conex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapbox/ecs-conex/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapbox/ecs-conex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapbox/ecs-conex/statuses/{sha}","languages_url":"https://api.github.com/repos/mapbox/ecs-conex/languages","stargazers_url":"https://api.github.com/repos/mapbox/ecs-conex/stargazers","contributors_url":"https://api.github.com/repos/mapbox/ecs-conex/contributors","subscribers_url":"https://api.github.com/repos/mapbox/ecs-conex/subscribers","subscription_url":"https://api.github.com/repos/mapbox/ecs-conex/subscription","commits_url":"https://api.github.com/repos/mapbox/ecs-conex/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapbox/ecs-conex/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapbox/ecs-conex/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapbox/ecs-conex/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapbox/ecs-conex/contents/{+path}","compare_url":"https://api.github.com/repos/mapbox/ecs-conex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapbox/ecs-conex/merges","archive_url":"https://api.github.com/repos/mapbox/ecs-conex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapbox/ecs-conex/downloads","issues_url":"https://api.github.com/repos/mapbox/ecs-conex/issues{/number}","pulls_url":"https://api.github.com/repos/mapbox/ecs-conex/pulls{/number}","milestones_url":"https://api.github.com/repos/mapbox/ecs-conex/milestones{/number}","notifications_url":"https://api.github.com/repos/mapbox/ecs-conex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapbox/ecs-conex/labels{/name}","releases_url":"https://api.github.com/repos/mapbox/ecs-conex/releases{/id}","deployments_url":"https://api.github.com/repos/mapbox/ecs-conex/deployments","created_at":"2016-05-10T02:39:11Z","updated_at":"2016-07-20T18:20:40Z","pushed_at":"2016-07-21T00:44:53Z","git_url":"git://github.com/mapbox/ecs-conex.git","ssh_url":"git@github.com:mapbox/ecs-conex.git","clone_url":"https://github.com/mapbox/ecs-conex.git","svn_url":"https://github.com/mapbox/ecs-conex","homepage":null,"size":90,"stargazers_count":4,"watchers_count":4,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":12,"forks":1,"open_issues":12,"watchers":4,"default_branch":"master"}},"base":{"label":"mapbox:master","ref":"master","sha":"e1a7550e9048eef19ee82b69d20cd3be2052a419","user":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"repo":{"id":58424071,"name":"ecs-conex","full_name":"mapbox/ecs-conex","owner":{"login":"mapbox","id":600935,"avatar_url":"https://avatars.githubusercontent.com/u/600935?v=3","gravatar_id":"","url":"https://api.github.com/users/mapbox","html_url":"https://github.com/mapbox","followers_url":"https://api.github.com/users/mapbox/followers","following_url":"https://api.github.com/users/mapbox/following{/other_user}","gists_url":"https://api.github.com/users/mapbox/gists{/gist_id}","starred_url":"https://api.github.com/users/mapbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapbox/subscriptions","organizations_url":"https://api.github.com/users/mapbox/orgs","repos_url":"https://api.github.com/users/mapbox/repos","events_url":"https://api.github.com/users/mapbox/events{/privacy}","received_events_url":"https://api.github.com/users/mapbox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mapbox/ecs-conex","description":"ECS Container Express","fork":false,"url":"https://api.github.com/repos/mapbox/ecs-conex","forks_url":"https://api.github.com/repos/mapbox/ecs-conex/forks","keys_url":"https://api.github.com/repos/mapbox/ecs-conex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mapbox/ecs-conex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mapbox/ecs-conex/teams","hooks_url":"https://api.github.com/repos/mapbox/ecs-conex/hooks","issue_events_url":"https://api.github.com/repos/mapbox/ecs-conex/issues/events{/number}","events_url":"https://api.github.com/repos/mapbox/ecs-conex/events","assignees_url":"https://api.github.com/repos/mapbox/ecs-conex/assignees{/user}","branches_url":"https://api.github.com/repos/mapbox/ecs-conex/branches{/branch}","tags_url":"https://api.github.com/repos/mapbox/ecs-conex/tags","blobs_url":"https://api.github.com/repos/mapbox/ecs-conex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mapbox/ecs-conex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mapbox/ecs-conex/git/refs{/sha}","trees_url":"https://api.github.com/repos/mapbox/ecs-conex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mapbox/ecs-conex/statuses/{sha}","languages_url":"https://api.github.com/repos/mapbox/ecs-conex/languages","stargazers_url":"https://api.github.com/repos/mapbox/ecs-conex/stargazers","contributors_url":"https://api.github.com/repos/mapbox/ecs-conex/contributors","subscribers_url":"https://api.github.com/repos/mapbox/ecs-conex/subscribers","subscription_url":"https://api.github.com/repos/mapbox/ecs-conex/subscription","commits_url":"https://api.github.com/repos/mapbox/ecs-conex/commits{/sha}","git_commits_url":"https://api.github.com/repos/mapbox/ecs-conex/git/commits{/sha}","comments_url":"https://api.github.com/repos/mapbox/ecs-conex/comments{/number}","issue_comment_url":"https://api.github.com/repos/mapbox/ecs-conex/issues/comments{/number}","contents_url":"https://api.github.com/repos/mapbox/ecs-conex/contents/{+path}","compare_url":"https://api.github.com/repos/mapbox/ecs-conex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mapbox/ecs-conex/merges","archive_url":"https://api.github.com/repos/mapbox/ecs-conex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mapbox/ecs-conex/downloads","issues_url":"https://api.github.com/repos/mapbox/ecs-conex/issues{/number}","pulls_url":"https://api.github.com/repos/mapbox/ecs-conex/pulls{/number}","milestones_url":"https://api.github.com/repos/mapbox/ecs-conex/milestones{/number}","notifications_url":"https://api.github.com/repos/mapbox/ecs-conex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mapbox/ecs-conex/labels{/name}","releases_url":"https://api.github.com/repos/mapbox/ecs-conex/releases{/id}","deployments_url":"https://api.github.com/repos/mapbox/ecs-conex/deployments","created_at":"2016-05-10T02:39:11Z","updated_at":"2016-07-20T18:20:40Z","pushed_at":"2016-07-21T00:44:53Z","git_url":"git://github.com/mapbox/ecs-conex.git","ssh_url":"git@github.com:mapbox/ecs-conex.git","clone_url":"https://github.com/mapbox/ecs-conex.git","svn_url":"https://github.com/mapbox/ecs-conex","homepage":null,"size":90,"stargazers_count":4,"watchers_count":4,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":12,"forks":1,"open_issues":12,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mapbox/ecs-conex/pulls/33"},"html":{"href":"https://github.com/mapbox/ecs-conex/pull/33"},"issue":{"href":"https://api.github.com/repos/mapbox/ecs-conex/issues/33"},"comments":{"href":"https://api.github.com/repos/mapbox/ecs-conex/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/mapbox/ecs-conex/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/mapbox/ecs-conex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mapbox/ecs-conex/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/mapbox/ecs-conex/statuses/e383187039ab0b7361d386090ae10f3b6706a037"}}}}
{"actor":{"display_login":"rclark"}}