{"action":"created","issue":{"url":"https://api.github.com/repos/dennybaa/st2-packages/issues/12","labels_url":"https://api.github.com/repos/dennybaa/st2-packages/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/dennybaa/st2-packages/issues/12/comments","events_url":"https://api.github.com/repos/dennybaa/st2-packages/issues/12/events","html_url":"https://github.com/dennybaa/st2-packages/issues/12","id":114921240,"number":12,"title":"Pass $ST2_RELEASE to docker-compose from CI","user":{"login":"armab","id":1533818,"avatar_url":"https://avatars.githubusercontent.com/u/1533818?v=3","gravatar_id":"","url":"https://api.github.com/users/armab","html_url":"https://github.com/armab","followers_url":"https://api.github.com/users/armab/followers","following_url":"https://api.github.com/users/armab/following{/other_user}","gists_url":"https://api.github.com/users/armab/gists{/gist_id}","starred_url":"https://api.github.com/users/armab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armab/subscriptions","organizations_url":"https://api.github.com/users/armab/orgs","repos_url":"https://api.github.com/users/armab/repos","events_url":"https://api.github.com/users/armab/events{/privacy}","received_events_url":"https://api.github.com/users/armab/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-03T22:05:37Z","updated_at":"2015-11-03T22:15:00Z","closed_at":null,"body":"Add ability to pass revision number aka release number from CI, to control package versioning.\r\n> st2api_0.14dev-**20**_amd64.deb\r\n\r\nSo the version number `0.14dev` is parsed from [`st2common`](https://github.com/StackStorm/st2/blob/master/st2common/st2common/__init__.py#L16) automatically and revision number `20` is injected from outside via ENV.\r\n\r\nSame as we have for mistral [in docker-compose](https://github.com/dennybaa/st2-packages/blob/4c356bf7b908fd27bdfdfa865cb93b326985f94a/compose-suite.yml#L19).\r\n\r\n`docker-compose` should pick up env via https://github.com/docker/compose/pull/1765 when using:\r\n```sh\r\nexport ST2_RELEASE=20\r\ndocker-compose up debian\r\n```\r\n--- \r\n\r\n^^ I'm happy that feature with ENV variables was introduced in docker-compose and released in [1.5 version just *hours ago*](https://github.com/docker/compose/releases/tag/1.5.0). We're lucky here :four_leaf_clover: \r\n\r\nDocs: https://github.com/docker/compose/blob/8cc8e61/docs/compose-file.md#variable-substitution"},"comment":{"url":"https://api.github.com/repos/dennybaa/st2-packages/issues/comments/153506353","html_url":"https://github.com/dennybaa/st2-packages/issues/12#issuecomment-153506353","issue_url":"https://api.github.com/repos/dennybaa/st2-packages/issues/12","id":153506353,"user":{"login":"dennybaa","id":891419,"avatar_url":"https://avatars.githubusercontent.com/u/891419?v=3","gravatar_id":"","url":"https://api.github.com/users/dennybaa","html_url":"https://github.com/dennybaa","followers_url":"https://api.github.com/users/dennybaa/followers","following_url":"https://api.github.com/users/dennybaa/following{/other_user}","gists_url":"https://api.github.com/users/dennybaa/gists{/gist_id}","starred_url":"https://api.github.com/users/dennybaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennybaa/subscriptions","organizations_url":"https://api.github.com/users/dennybaa/orgs","repos_url":"https://api.github.com/users/dennybaa/repos","events_url":"https://api.github.com/users/dennybaa/events{/privacy}","received_events_url":"https://api.github.com/users/dennybaa/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T22:15:00Z","updated_at":"2015-11-03T22:15:00Z","body":":+1: "}}