{"action":"opened","number":8,"pull_request":{"url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/pulls/8","id":189196442,"html_url":"https://github.com/Otus-DevOps-2018-02/SergeSpinoza_microservices/pull/8","diff_url":"https://github.com/Otus-DevOps-2018-02/SergeSpinoza_microservices/pull/8.diff","patch_url":"https://github.com/Otus-DevOps-2018-02/SergeSpinoza_microservices/pull/8.patch","issue_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/issues/8","number":8,"state":"open","locked":false,"title":"Homework-18, Gitlab ci 2","user":{"login":"SergeSpinoza","id":26114467,"avatar_url":"https://avatars1.githubusercontent.com/u/26114467?v=4","gravatar_id":"","url":"https://api.github.com/users/SergeSpinoza","html_url":"https://github.com/SergeSpinoza","followers_url":"https://api.github.com/users/SergeSpinoza/followers","following_url":"https://api.github.com/users/SergeSpinoza/following{/other_user}","gists_url":"https://api.github.com/users/SergeSpinoza/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeSpinoza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeSpinoza/subscriptions","organizations_url":"https://api.github.com/users/SergeSpinoza/orgs","repos_url":"https://api.github.com/users/SergeSpinoza/repos","events_url":"https://api.github.com/users/SergeSpinoza/events{/privacy}","received_events_url":"https://api.github.com/users/SergeSpinoza/received_events","type":"User","site_admin":false},"body":"# Выполнено ДЗ № 18\r\n\r\n - [x] Основное ДЗ\r\n - [x] Задание со *\r\n\r\n## В процессе сделано:\r\n### Основное задание\r\n- Расширили существующий пайплайн в Gitlab CI;\r\n- Включили существующий runner для нового проекта;\r\n- Ознакомились как можно динамечески менять пайплайн в зависимости от условий (в нашем случае динамическое изменение при наличии тега у коммита).\r\n\r\n### Дополнительное задание со * и с **\r\n- Предварительные действия: \r\n  - добавить опцию `--docker-privileged` при регистрации runner (полную команду можно посмотреть в моем файле run-register-runners.sh). Это необходимо для доступа к /var/run/docker.sock (для использования docker daemon);\r\n  - в настройках проекта в \"CI/CD\" в \"Secret variables\" задать секретные переменные `DOCKER_HUB_LOGIN` и `DOCKER_HUB_PASS`;\r\n  - записать название своего репозитория в переменную `DOCKER_HUB_REPO` в файле .gitlab-ci.yml;\r\n  - т.к. Gitlab установлен на инстансе в GCP - то необходимо для этого инстанса в его настройках дать права на проект, чтобы с этого инстанса можно было также развовачивать и удалять дополнительные инстансы без авторизации и СМС =);\r\n- Создан пайплайн, который при добавление ветки запускает билд докер-образа, заливает его на docker HUB, разворачивает через docker-machine хост с докером на GCP и поднимает докер-контейнер с приложением reddit. Также реализована возможность удаления созданного инстанса по кнопке. Для передачи данных, необходимых для управления созданным инстансом через docker-machine между джобами - использовал cache. \r\n\r\n## Как запустить проект:\r\n - Создать новую ветку и сделать пуш. \r\n\r\n## Как проверить работоспособность:\r\n - Перейти по ссылке http://new_instance_ip:9292\r\n - Удалить созданный инстанс кнопкой. \r\n\r\n## PR checklisk\r\n - [x] Выставил label с номером домашнего задания\r\n - [x] Выставил label с темой домашнего задания\r\n","created_at":"2018-05-19T16:49:22Z","updated_at":"2018-05-19T16:49:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":931850730,"url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/labels/GitlabCI","name":"GitlabCI","color":"f2491a","default":false},{"id":852914016,"url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/labels/Homework-18","name":"Homework-18","color":"CC6600","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/pulls/8/commits","review_comments_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/pulls/8/comments","review_comment_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/issues/8/comments","statuses_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/statuses/74d22a57ffd604053707fb461663c4004a8663e1","head":{"label":"Otus-DevOps-2018-02:gitlab-ci-2","ref":"gitlab-ci-2","sha":"74d22a57ffd604053707fb461663c4004a8663e1","user":{"login":"Otus-DevOps-2018-02","id":35966359,"avatar_url":"https://avatars2.githubusercontent.com/u/35966359?v=4","gravatar_id":"","url":"https://api.github.com/users/Otus-DevOps-2018-02","html_url":"https://github.com/Otus-DevOps-2018-02","followers_url":"https://api.github.com/users/Otus-DevOps-2018-02/followers","following_url":"https://api.github.com/users/Otus-DevOps-2018-02/following{/other_user}","gists_url":"https://api.github.com/users/Otus-DevOps-2018-02/gists{/gist_id}","starred_url":"https://api.github.com/users/Otus-DevOps-2018-02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Otus-DevOps-2018-02/subscriptions","organizations_url":"https://api.github.com/users/Otus-DevOps-2018-02/orgs","repos_url":"https://api.github.com/users/Otus-DevOps-2018-02/repos","events_url":"https://api.github.com/users/Otus-DevOps-2018-02/events{/privacy}","received_events_url":"https://api.github.com/users/Otus-DevOps-2018-02/received_events","type":"Organization","site_admin":false},"repo":{"id":123421967,"name":"SergeSpinoza_microservices","full_name":"Otus-DevOps-2018-02/SergeSpinoza_microservices","owner":{"login":"Otus-DevOps-2018-02","id":35966359,"avatar_url":"https://avatars2.githubusercontent.com/u/35966359?v=4","gravatar_id":"","url":"https://api.github.com/users/Otus-DevOps-2018-02","html_url":"https://github.com/Otus-DevOps-2018-02","followers_url":"https://api.github.com/users/Otus-DevOps-2018-02/followers","following_url":"https://api.github.com/users/Otus-DevOps-2018-02/following{/other_user}","gists_url":"https://api.github.com/users/Otus-DevOps-2018-02/gists{/gist_id}","starred_url":"https://api.github.com/users/Otus-DevOps-2018-02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Otus-DevOps-2018-02/subscriptions","organizations_url":"https://api.github.com/users/Otus-DevOps-2018-02/orgs","repos_url":"https://api.github.com/users/Otus-DevOps-2018-02/repos","events_url":"https://api.github.com/users/Otus-DevOps-2018-02/events{/privacy}","received_events_url":"https://api.github.com/users/Otus-DevOps-2018-02/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Otus-DevOps-2018-02/SergeSpinoza_microservices","description":"SergeSpinoza microservices repository","fork":false,"url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices","forks_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/forks","keys_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/teams","hooks_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/hooks","issue_events_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/issues/events{/number}","events_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/events","assignees_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/assignees{/user}","branches_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/branches{/branch}","tags_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/tags","blobs_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/git/refs{/sha}","trees_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/statuses/{sha}","languages_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/languages","stargazers_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/stargazers","contributors_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/contributors","subscribers_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/subscribers","subscription_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/subscription","commits_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/commits{/sha}","git_commits_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/git/commits{/sha}","comments_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/comments{/number}","issue_comment_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/issues/comments{/number}","contents_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/contents/{+path}","compare_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/merges","archive_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/downloads","issues_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/issues{/number}","pulls_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/pulls{/number}","milestones_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/milestones{/number}","notifications_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/labels{/name}","releases_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/releases{/id}","deployments_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/deployments","created_at":"2018-03-01T10:48:39Z","updated_at":"2018-05-19T07:49:22Z","pushed_at":"2018-05-19T16:45:08Z","git_url":"git://github.com/Otus-DevOps-2018-02/SergeSpinoza_microservices.git","ssh_url":"git@github.com:Otus-DevOps-2018-02/SergeSpinoza_microservices.git","clone_url":"https://github.com/Otus-DevOps-2018-02/SergeSpinoza_microservices.git","svn_url":"https://github.com/Otus-DevOps-2018-02/SergeSpinoza_microservices","homepage":"","size":45,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Otus-DevOps-2018-02:master","ref":"master","sha":"ffc623f7f9e6ff8d8edf78b9494e4c899487baae","user":{"login":"Otus-DevOps-2018-02","id":35966359,"avatar_url":"https://avatars2.githubusercontent.com/u/35966359?v=4","gravatar_id":"","url":"https://api.github.com/users/Otus-DevOps-2018-02","html_url":"https://github.com/Otus-DevOps-2018-02","followers_url":"https://api.github.com/users/Otus-DevOps-2018-02/followers","following_url":"https://api.github.com/users/Otus-DevOps-2018-02/following{/other_user}","gists_url":"https://api.github.com/users/Otus-DevOps-2018-02/gists{/gist_id}","starred_url":"https://api.github.com/users/Otus-DevOps-2018-02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Otus-DevOps-2018-02/subscriptions","organizations_url":"https://api.github.com/users/Otus-DevOps-2018-02/orgs","repos_url":"https://api.github.com/users/Otus-DevOps-2018-02/repos","events_url":"https://api.github.com/users/Otus-DevOps-2018-02/events{/privacy}","received_events_url":"https://api.github.com/users/Otus-DevOps-2018-02/received_events","type":"Organization","site_admin":false},"repo":{"id":123421967,"name":"SergeSpinoza_microservices","full_name":"Otus-DevOps-2018-02/SergeSpinoza_microservices","owner":{"login":"Otus-DevOps-2018-02","id":35966359,"avatar_url":"https://avatars2.githubusercontent.com/u/35966359?v=4","gravatar_id":"","url":"https://api.github.com/users/Otus-DevOps-2018-02","html_url":"https://github.com/Otus-DevOps-2018-02","followers_url":"https://api.github.com/users/Otus-DevOps-2018-02/followers","following_url":"https://api.github.com/users/Otus-DevOps-2018-02/following{/other_user}","gists_url":"https://api.github.com/users/Otus-DevOps-2018-02/gists{/gist_id}","starred_url":"https://api.github.com/users/Otus-DevOps-2018-02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Otus-DevOps-2018-02/subscriptions","organizations_url":"https://api.github.com/users/Otus-DevOps-2018-02/orgs","repos_url":"https://api.github.com/users/Otus-DevOps-2018-02/repos","events_url":"https://api.github.com/users/Otus-DevOps-2018-02/events{/privacy}","received_events_url":"https://api.github.com/users/Otus-DevOps-2018-02/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Otus-DevOps-2018-02/SergeSpinoza_microservices","description":"SergeSpinoza microservices repository","fork":false,"url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices","forks_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/forks","keys_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/teams","hooks_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/hooks","issue_events_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/issues/events{/number}","events_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/events","assignees_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/assignees{/user}","branches_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/branches{/branch}","tags_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/tags","blobs_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/git/refs{/sha}","trees_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/statuses/{sha}","languages_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/languages","stargazers_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/stargazers","contributors_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/contributors","subscribers_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/subscribers","subscription_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/subscription","commits_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/commits{/sha}","git_commits_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/git/commits{/sha}","comments_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/comments{/number}","issue_comment_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/issues/comments{/number}","contents_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/contents/{+path}","compare_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/merges","archive_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/downloads","issues_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/issues{/number}","pulls_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/pulls{/number}","milestones_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/milestones{/number}","notifications_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/labels{/name}","releases_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/releases{/id}","deployments_url":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/deployments","created_at":"2018-03-01T10:48:39Z","updated_at":"2018-05-19T07:49:22Z","pushed_at":"2018-05-19T16:45:08Z","git_url":"git://github.com/Otus-DevOps-2018-02/SergeSpinoza_microservices.git","ssh_url":"git@github.com:Otus-DevOps-2018-02/SergeSpinoza_microservices.git","clone_url":"https://github.com/Otus-DevOps-2018-02/SergeSpinoza_microservices.git","svn_url":"https://github.com/Otus-DevOps-2018-02/SergeSpinoza_microservices","homepage":"","size":45,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/pulls/8"},"html":{"href":"https://github.com/Otus-DevOps-2018-02/SergeSpinoza_microservices/pull/8"},"issue":{"href":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/issues/8"},"comments":{"href":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/Otus-DevOps-2018-02/SergeSpinoza_microservices/statuses/74d22a57ffd604053707fb461663c4004a8663e1"}},"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":37,"additions":881,"deletions":0,"changed_files":21}}
{"actor":{"display_login":"SergeSpinoza"}}