{"action":"opened","number":6,"pull_request":{"url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/pulls/6","id":212730153,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyNzMwMTUz","html_url":"https://github.com/Otus-DevOps-2018-05/VladimirDe_microservices/pull/6","diff_url":"https://github.com/Otus-DevOps-2018-05/VladimirDe_microservices/pull/6.diff","patch_url":"https://github.com/Otus-DevOps-2018-05/VladimirDe_microservices/pull/6.patch","issue_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/issues/6","number":6,"state":"open","locked":false,"title":"Gitlab ci 2","user":{"login":"VladimirDe","id":40039450,"node_id":"MDQ6VXNlcjQwMDM5NDUw","avatar_url":"https://avatars1.githubusercontent.com/u/40039450?v=4","gravatar_id":"","url":"https://api.github.com/users/VladimirDe","html_url":"https://github.com/VladimirDe","followers_url":"https://api.github.com/users/VladimirDe/followers","following_url":"https://api.github.com/users/VladimirDe/following{/other_user}","gists_url":"https://api.github.com/users/VladimirDe/gists{/gist_id}","starred_url":"https://api.github.com/users/VladimirDe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladimirDe/subscriptions","organizations_url":"https://api.github.com/users/VladimirDe/orgs","repos_url":"https://api.github.com/users/VladimirDe/repos","events_url":"https://api.github.com/users/VladimirDe/events{/privacy}","received_events_url":"https://api.github.com/users/VladimirDe/received_events","type":"User","site_admin":false},"body":"# Выполнено ДЗ №17\r\n\r\n- [ ]   Основное ДЗ: расширить существующий пайплайн в gilab ci, определить окружения\r\n- [ ]   Задание со *: при пуше новой ветки должен создаваться сервер для окружения с возможностью удалить его кнопкой\r\n- [ ]   Задание с **: в шаг build добавить сборку контейнера с приложением reddit, контейнер деплоить на созданный для ветки сервер\r\n\r\n## В процессе сделано:\r\n\r\n- В конвейер непрервывной поставки были добавлены шаги staging, production использующие различные окружения\r\n- В ansible создана роль reddit_monolith для деплоя контейнера на docker хост\r\n- Изменен плейбук reddit_app.yml с учетом reddit_monolith\r\n- Написан Dockerfile для сборки docker образа reddit приложения\r\n- Написан Dockerfile для сборки docker образа провижинера приложения, содержащий в себе terraform, ansible\r\n- В docker_host module (terraform) добавлены ресурсы для провижинга приложения\r\n- В шаг build добавлена сборка образов reddit, app_provision с их последующим сохранением в docker registry\r\n- В конвейер непрервывной поставки был добавлен шаг branch_start_review для автоматического создания серверов для каждой ветки и деплоя приложения reddit. При этом, для каждой ветки через terrafrom workspace создается инстанс docker хоста, на который плейбуком reddit_app.yml деплоится reddit приложение\r\n- В конвейер непрервывной поставки был добавлен шаг branch_stop_review для удаления серверов\r\n\r\n## Как запустить проект:\r\nОписано в 17.2 Как запустить проект в README.md\r\n\r\n## Как проверить работоспособность:\r\nОписано в 17.3 Как проверить проект в README.md\r\n\r\n## PR checklist\r\n\r\n- [ ]   Выставил label с номером домашнего задания (homework-18)\r\n- [ ]   Выставил label с темой домашнего задания (GitlabCi, Gitlab-2)","created_at":"2018-09-03T12:13:29Z","updated_at":"2018-09-03T12:13:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":970051063,"node_id":"MDU6TGFiZWw5NzAwNTEwNjM=","url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/labels/GitlabCI","name":"GitlabCI","color":"c7e559","default":false},{"id":970609593,"node_id":"MDU6TGFiZWw5NzA2MDk1OTM=","url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/labels/gitlab-ci-2","name":"gitlab-ci-2","color":"8a94f2","default":false},{"id":1044021767,"node_id":"MDU6TGFiZWwxMDQ0MDIxNzY3","url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/labels/homework-18","name":"homework-18","color":"a275ce","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/pulls/6/commits","review_comments_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/pulls/6/comments","review_comment_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/issues/6/comments","statuses_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/statuses/d7a9f62e22d76a21d939944d86733ce155d00d14","head":{"label":"Otus-DevOps-2018-05:gitlab-ci-2","ref":"gitlab-ci-2","sha":"d7a9f62e22d76a21d939944d86733ce155d00d14","user":{"login":"Otus-DevOps-2018-05","id":39791338,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NzkxMzM4","avatar_url":"https://avatars3.githubusercontent.com/u/39791338?v=4","gravatar_id":"","url":"https://api.github.com/users/Otus-DevOps-2018-05","html_url":"https://github.com/Otus-DevOps-2018-05","followers_url":"https://api.github.com/users/Otus-DevOps-2018-05/followers","following_url":"https://api.github.com/users/Otus-DevOps-2018-05/following{/other_user}","gists_url":"https://api.github.com/users/Otus-DevOps-2018-05/gists{/gist_id}","starred_url":"https://api.github.com/users/Otus-DevOps-2018-05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Otus-DevOps-2018-05/subscriptions","organizations_url":"https://api.github.com/users/Otus-DevOps-2018-05/orgs","repos_url":"https://api.github.com/users/Otus-DevOps-2018-05/repos","events_url":"https://api.github.com/users/Otus-DevOps-2018-05/events{/privacy}","received_events_url":"https://api.github.com/users/Otus-DevOps-2018-05/received_events","type":"Organization","site_admin":false},"repo":{"id":138016099,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgwMTYwOTk=","name":"VladimirDe_microservices","full_name":"Otus-DevOps-2018-05/VladimirDe_microservices","owner":{"login":"Otus-DevOps-2018-05","id":39791338,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NzkxMzM4","avatar_url":"https://avatars3.githubusercontent.com/u/39791338?v=4","gravatar_id":"","url":"https://api.github.com/users/Otus-DevOps-2018-05","html_url":"https://github.com/Otus-DevOps-2018-05","followers_url":"https://api.github.com/users/Otus-DevOps-2018-05/followers","following_url":"https://api.github.com/users/Otus-DevOps-2018-05/following{/other_user}","gists_url":"https://api.github.com/users/Otus-DevOps-2018-05/gists{/gist_id}","starred_url":"https://api.github.com/users/Otus-DevOps-2018-05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Otus-DevOps-2018-05/subscriptions","organizations_url":"https://api.github.com/users/Otus-DevOps-2018-05/orgs","repos_url":"https://api.github.com/users/Otus-DevOps-2018-05/repos","events_url":"https://api.github.com/users/Otus-DevOps-2018-05/events{/privacy}","received_events_url":"https://api.github.com/users/Otus-DevOps-2018-05/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Otus-DevOps-2018-05/VladimirDe_microservices","description":"VladimirDe microservices repository","fork":false,"url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices","forks_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/forks","keys_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/teams","hooks_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/hooks","issue_events_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/issues/events{/number}","events_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/events","assignees_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/assignees{/user}","branches_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/branches{/branch}","tags_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/tags","blobs_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/git/refs{/sha}","trees_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/statuses/{sha}","languages_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/languages","stargazers_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/stargazers","contributors_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/contributors","subscribers_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/subscribers","subscription_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/subscription","commits_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/commits{/sha}","git_commits_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/git/commits{/sha}","comments_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/comments{/number}","issue_comment_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/issues/comments{/number}","contents_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/contents/{+path}","compare_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/merges","archive_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/downloads","issues_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/issues{/number}","pulls_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/pulls{/number}","milestones_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/milestones{/number}","notifications_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/labels{/name}","releases_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/releases{/id}","deployments_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/deployments","created_at":"2018-06-20T10:18:21Z","updated_at":"2018-06-20T10:18:25Z","pushed_at":"2018-09-03T12:05:36Z","git_url":"git://github.com/Otus-DevOps-2018-05/VladimirDe_microservices.git","ssh_url":"git@github.com:Otus-DevOps-2018-05/VladimirDe_microservices.git","clone_url":"https://github.com/Otus-DevOps-2018-05/VladimirDe_microservices.git","svn_url":"https://github.com/Otus-DevOps-2018-05/VladimirDe_microservices","homepage":"","size":59,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"Otus-DevOps-2018-05:master","ref":"master","sha":"e1701ab4c8001724884d39b6a16e8ecb35e34b4b","user":{"login":"Otus-DevOps-2018-05","id":39791338,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NzkxMzM4","avatar_url":"https://avatars3.githubusercontent.com/u/39791338?v=4","gravatar_id":"","url":"https://api.github.com/users/Otus-DevOps-2018-05","html_url":"https://github.com/Otus-DevOps-2018-05","followers_url":"https://api.github.com/users/Otus-DevOps-2018-05/followers","following_url":"https://api.github.com/users/Otus-DevOps-2018-05/following{/other_user}","gists_url":"https://api.github.com/users/Otus-DevOps-2018-05/gists{/gist_id}","starred_url":"https://api.github.com/users/Otus-DevOps-2018-05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Otus-DevOps-2018-05/subscriptions","organizations_url":"https://api.github.com/users/Otus-DevOps-2018-05/orgs","repos_url":"https://api.github.com/users/Otus-DevOps-2018-05/repos","events_url":"https://api.github.com/users/Otus-DevOps-2018-05/events{/privacy}","received_events_url":"https://api.github.com/users/Otus-DevOps-2018-05/received_events","type":"Organization","site_admin":false},"repo":{"id":138016099,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgwMTYwOTk=","name":"VladimirDe_microservices","full_name":"Otus-DevOps-2018-05/VladimirDe_microservices","owner":{"login":"Otus-DevOps-2018-05","id":39791338,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NzkxMzM4","avatar_url":"https://avatars3.githubusercontent.com/u/39791338?v=4","gravatar_id":"","url":"https://api.github.com/users/Otus-DevOps-2018-05","html_url":"https://github.com/Otus-DevOps-2018-05","followers_url":"https://api.github.com/users/Otus-DevOps-2018-05/followers","following_url":"https://api.github.com/users/Otus-DevOps-2018-05/following{/other_user}","gists_url":"https://api.github.com/users/Otus-DevOps-2018-05/gists{/gist_id}","starred_url":"https://api.github.com/users/Otus-DevOps-2018-05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Otus-DevOps-2018-05/subscriptions","organizations_url":"https://api.github.com/users/Otus-DevOps-2018-05/orgs","repos_url":"https://api.github.com/users/Otus-DevOps-2018-05/repos","events_url":"https://api.github.com/users/Otus-DevOps-2018-05/events{/privacy}","received_events_url":"https://api.github.com/users/Otus-DevOps-2018-05/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Otus-DevOps-2018-05/VladimirDe_microservices","description":"VladimirDe microservices repository","fork":false,"url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices","forks_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/forks","keys_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/teams","hooks_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/hooks","issue_events_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/issues/events{/number}","events_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/events","assignees_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/assignees{/user}","branches_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/branches{/branch}","tags_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/tags","blobs_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/git/refs{/sha}","trees_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/statuses/{sha}","languages_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/languages","stargazers_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/stargazers","contributors_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/contributors","subscribers_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/subscribers","subscription_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/subscription","commits_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/commits{/sha}","git_commits_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/git/commits{/sha}","comments_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/comments{/number}","issue_comment_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/issues/comments{/number}","contents_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/contents/{+path}","compare_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/merges","archive_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/downloads","issues_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/issues{/number}","pulls_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/pulls{/number}","milestones_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/milestones{/number}","notifications_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/labels{/name}","releases_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/releases{/id}","deployments_url":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/deployments","created_at":"2018-06-20T10:18:21Z","updated_at":"2018-06-20T10:18:25Z","pushed_at":"2018-09-03T12:05:36Z","git_url":"git://github.com/Otus-DevOps-2018-05/VladimirDe_microservices.git","ssh_url":"git@github.com:Otus-DevOps-2018-05/VladimirDe_microservices.git","clone_url":"https://github.com/Otus-DevOps-2018-05/VladimirDe_microservices.git","svn_url":"https://github.com/Otus-DevOps-2018-05/VladimirDe_microservices","homepage":"","size":59,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/pulls/6"},"html":{"href":"https://github.com/Otus-DevOps-2018-05/VladimirDe_microservices/pull/6"},"issue":{"href":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/issues/6"},"comments":{"href":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/Otus-DevOps-2018-05/VladimirDe_microservices/statuses/d7a9f62e22d76a21d939944d86733ce155d00d14"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":33,"additions":5045,"deletions":1,"changed_files":216}}
{"actor":{"display_login":"VladimirDe"}}