{"action":"created","issue":{"url":"https://api.github.com/repos/tutumcloud/builder/issues/33","labels_url":"https://api.github.com/repos/tutumcloud/builder/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/tutumcloud/builder/issues/33/comments","events_url":"https://api.github.com/repos/tutumcloud/builder/issues/33/events","html_url":"https://github.com/tutumcloud/builder/issues/33","id":94982198,"number":33,"title":"ENV vars are not available in the hooks scripts","user":{"login":"ianneub","id":17455,"avatar_url":"https://avatars.githubusercontent.com/u/17455?v=3","gravatar_id":"","url":"https://api.github.com/users/ianneub","html_url":"https://github.com/ianneub","followers_url":"https://api.github.com/users/ianneub/followers","following_url":"https://api.github.com/users/ianneub/following{/other_user}","gists_url":"https://api.github.com/users/ianneub/gists{/gist_id}","starred_url":"https://api.github.com/users/ianneub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianneub/subscriptions","organizations_url":"https://api.github.com/users/ianneub/orgs","repos_url":"https://api.github.com/users/ianneub/repos","events_url":"https://api.github.com/users/ianneub/events{/privacy}","received_events_url":"https://api.github.com/users/ianneub/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-14T16:18:59Z","updated_at":"2015-07-14T16:37:37Z","closed_at":"2015-07-14T16:37:37Z","body":"It seems that the ENV variables specified in the readme that should exist while the hooks are running are not actually there.\r\n\r\n`docker run --rm -it --privileged -v $(pwd):/app -v $HOME/.dockercfg:/.dockercfg:ro --volumes-from builder_cache tutum/builder:staging asdf`\r\n\r\nHere is my `hooks/push` file:\r\n```sh\r\n#!/bin/sh\r\n\r\nenv\r\ngh-release create fenderton/sqs_worker \"$IMAGE_NAME\"\r\n```\r\nAnd the output:\r\n```\r\n=> Executing hooks/push hook\r\nHOSTNAME=0cc98cd00027\r\nSHLVL=1\r\nHOME=/root\r\nOLDPWD=/\r\n_=./hooks/push\r\nTERM=xterm\r\nPATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\r\nPWD=/src\r\n```\r\n\r\nI would expect the `IMAGE_NAME` env var to be available and be set to `asdf`."},"comment":{"url":"https://api.github.com/repos/tutumcloud/builder/issues/comments/121300402","html_url":"https://github.com/tutumcloud/builder/issues/33#issuecomment-121300402","issue_url":"https://api.github.com/repos/tutumcloud/builder/issues/33","id":121300402,"user":{"login":"ianneub","id":17455,"avatar_url":"https://avatars.githubusercontent.com/u/17455?v=3","gravatar_id":"","url":"https://api.github.com/users/ianneub","html_url":"https://github.com/ianneub","followers_url":"https://api.github.com/users/ianneub/followers","following_url":"https://api.github.com/users/ianneub/following{/other_user}","gists_url":"https://api.github.com/users/ianneub/gists{/gist_id}","starred_url":"https://api.github.com/users/ianneub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianneub/subscriptions","organizations_url":"https://api.github.com/users/ianneub/orgs","repos_url":"https://api.github.com/users/ianneub/repos","events_url":"https://api.github.com/users/ianneub/events{/privacy}","received_events_url":"https://api.github.com/users/ianneub/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T16:37:37Z","updated_at":"2015-07-14T16:37:37Z","body":"Thanks @pchico83 !"}}