{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/2481","labels_url":"https://api.github.com/repos/rancher/rancher/issues/2481/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/2481/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/2481/events","html_url":"https://github.com/rancher/rancher/issues/2481","id":114175726,"number":2481,"title":"[Feature Request] Stack integration with GitHub","user":{"login":"shakefu","id":1046227,"avatar_url":"https://avatars.githubusercontent.com/u/1046227?v=3","gravatar_id":"","url":"https://api.github.com/users/shakefu","html_url":"https://github.com/shakefu","followers_url":"https://api.github.com/users/shakefu/followers","following_url":"https://api.github.com/users/shakefu/following{/other_user}","gists_url":"https://api.github.com/users/shakefu/gists{/gist_id}","starred_url":"https://api.github.com/users/shakefu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shakefu/subscriptions","organizations_url":"https://api.github.com/users/shakefu/orgs","repos_url":"https://api.github.com/users/shakefu/repos","events_url":"https://api.github.com/users/shakefu/events{/privacy}","received_events_url":"https://api.github.com/users/shakefu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rancher/rancher/labels/area/catalog","name":"area/catalog","color":"fbca04"},{"url":"https://api.github.com/repos/rancher/rancher/labels/kind/feature","name":"kind/feature","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-30T00:39:32Z","updated_at":"2015-11-03T12:21:04Z","closed_at":null,"body":"It would be great to see the following:\r\n\r\n- Use the existing GitHub auth integration, possibly asking for more permissions as needed\r\n- When creating a new stack, you can specify a GitHub repo to pull the rancher-compose.yml and docker-compose.yml from\r\n- When making changes in the UI, you can (optionally) have Rancher keep the GitHub repo in sync by committing and pushing changes to the files\r\n- When a commit is pushed to a repo from elsewhere, it would use a GitHub web hook to push the changes back to Rancher, keeping the config synchronized (though this could still be done with checking out the repo and the rancher-cli, this would allow this step to be skipped)\r\n\r\nBenefits:\r\n\r\n- Easily spin up new Stacks in different Rancher environments/servers with just a GitHub URL\r\n- Avoid the pitfall of using an out-of-sync rancher-compose.yml/docker-compose.yml with the rancher-cli\r\n- Add the benefits of versioning/being able to roll back an entire Stack config\r\n- Allow a single commit (push) to use multiple web hooks to simultaneously update multiple Rancher environments and servers\r\n- Allow a single Rancher UI to keep a Stack sync'd via multiple web hooks by keeping the repo up to date\r\n"},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/153336583","html_url":"https://github.com/rancher/rancher/issues/2481#issuecomment-153336583","issue_url":"https://api.github.com/repos/rancher/rancher/issues/2481","id":153336583,"user":{"login":"cusspvz","id":3604053,"avatar_url":"https://avatars.githubusercontent.com/u/3604053?v=3","gravatar_id":"","url":"https://api.github.com/users/cusspvz","html_url":"https://github.com/cusspvz","followers_url":"https://api.github.com/users/cusspvz/followers","following_url":"https://api.github.com/users/cusspvz/following{/other_user}","gists_url":"https://api.github.com/users/cusspvz/gists{/gist_id}","starred_url":"https://api.github.com/users/cusspvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cusspvz/subscriptions","organizations_url":"https://api.github.com/users/cusspvz/orgs","repos_url":"https://api.github.com/users/cusspvz/repos","events_url":"https://api.github.com/users/cusspvz/events{/privacy}","received_events_url":"https://api.github.com/users/cusspvz/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T12:21:04Z","updated_at":"2015-11-03T12:21:04Z","body":"@shakefu sorry for misunderstanding, though you was proposing integration for building and deploying directly from a GH repo. :confounded: \r\n\r\nWe are also using a private GitHub repo for storing all our stacks, but since we are migrating repo by repo to GitLab, if this goes through, it would be nice to have GitLab as well."}}