{"id":106,"date":"2020-04-22T10:15:42","date_gmt":"2020-04-22T07:15:42","guid":{"rendered":"https:\/\/alse-code.ru\/?p=106"},"modified":"2021-05-04T21:59:02","modified_gmt":"2021-05-04T18:59:02","slug":"gitlab-with-runners-install","status":"publish","type":"post","link":"https:\/\/alse-code.ru\/gitlab-with-runners-install\/","title":{"rendered":"\u041e\u043f\u044b\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 GitLab + Runners"},"content":{"rendered":"\n<p>\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u043f\u0430\u0440\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0434\u043b\u044f \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432. \u0421\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c GitLab EE, GitLab Runner \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c CI \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0433\u043e.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0432 \u0442\u0430\u043d\u043a\u0435: GitLab Runner \u044d\u0442\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u0430\u0432\u044f\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f \u043a \u0433\u0438\u0442\u043b\u0430\u0431\u0443. \u041e\u043d\u0438 \u0441\u043b\u0443\u0436\u0430\u0442 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 &#8212; \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b \u0441\u0431\u043e\u0440\u043a\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u0440\u0430\u043d\u043d\u0435\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u043d\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u043c\u043e\u0449\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445 \u0438\u043b\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430 \u0441\u043f\u043e\u0442\u043e\u0432\u044b\u0445 \u0438\u043d\u0441\u0442\u0430\u043d\u0441\u0430\u0445 AWS (\u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u043f\u043e\u0442\u043e\u0432\u044b\u0445, \u043a\u0441\u0442\u0430\u0442\u0438)<\/p><\/blockquote>\n\n\n\n<p>\u0412 DevOps \u044f, \u043a\u0430\u043a \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a, \u0433\u043b\u0443\u0431\u043e\u043a\u043e \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u043e\u0433\u0440\u0443\u0436\u0430\u043b\u0441\u044f, \u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u0441\u0451 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u0435\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u041e\u0431\u0437\u043e\u0440 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438<\/h3>\n\n\n\n<p>\u0427\u0442\u043e\u0431\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0433\u0438\u0442\u043b\u0430\u0431, \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0448\u0430\u0433\u043e\u0432 \u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435 \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b: <a href=\"https:\/\/about.gitlab.com\/install\/\">https:\/\/about.gitlab.com\/install\/<\/a> \u043f\u043e\u043c\u0438\u043c\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u043e\u0439 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 Omnibus package, \u043a\u043e\u0435\u0439 \u044f \u0438 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b, \u0435\u0441\u0442\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432: \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432 \u043e\u0431\u043b\u0430\u043a\u0435, \u043d\u0430 \u043a\u0443\u0431\u0435\u0440, \u0447\u0435\u0440\u0435\u0437 \u0434\u043e\u043a\u0435\u0440 \u0438 \u0434\u0440.<\/p>\n\n\n\n<p>\u0417\u0430\u0442\u0435\u043c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u0440\u0430\u043d\u043d\u0435\u0440\u044b. \u0418\u0445 \u0441\u043e\u0432\u0435\u0442\u0443\u044e\u0442 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445, \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0445 \u043e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441\u0430\u043c\u043e\u0433\u043e \u0433\u0438\u0442\u043b\u0430\u0431\u0430 &#8212; \u0432\u0438\u0434\u0438\u043c\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043d\u0430 \u043d\u0438\u0445 \u043d\u0435 \u0442\u043e\u0440\u043c\u043e\u0437\u0438\u043b\u0430 gitlab. \u041e\u043d\u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u0436\u0435 \u043b\u0435\u0433\u043a\u043e \u043f\u043e \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 <a href=\"https:\/\/docs.gitlab.com\/runner\/install\/\">\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438<\/a>.<\/p>\n\n\n\n<p>\u0422\u0430\u043c \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432, \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b <a href=\"https:\/\/docs.gitlab.com\/runner\/install\/linux-repository.html\">\u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439<\/a>. \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0440\u0430\u043d\u043d\u0435\u0440 \u043d\u0443\u0436\u043d\u043e <a href=\"https:\/\/docs.gitlab.com\/runner\/register\/index.html\">\u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c<\/a> \u0432 \u043d\u0430\u0448\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u043c \u0433\u0438\u0442\u043b\u0430\u0431\u0435 (\u0442\u043e\u043a\u0435\u043d \u0434\u043b\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435 \u0433\u0438\u0442\u043b\u0430\u0431\u0430 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"http:\/\/you-gitlab\/admin\/runners\">http:\/\/you-gitlab-domain\/admin\/runners<\/a>, \u0430 \u0442\u0435\u0433\u0438 \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0442\u044c, \u0430 \u0442\u043e \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430\u043e\u0431\u0443\u043c).<\/p>\n\n\n\n<p>\u0412\u0441\u0451 \u0433\u043e\u0442\u043e\u0432\u043e! \u041c\u043e\u0436\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u043e\u043e\u0431\u0449\u0435 \u0438\u0437 \u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0432 \u0433\u0438\u0442\u043b\u0430\u0431\u0435), \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0442\u0443\u0434\u0430 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 .gitlab-ci.yml, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f \u0441\u043f\u0440\u0438\u043d\u0433 \u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u0430:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"yaml\" class=\"language-yaml\">image: java:8\n\nstages:\n  - build\n\nbefore_script:\n  - echo \"--- Hello from Gitlab Runner! ---\" &amp;&amp; echo \"Hostname of this runner \" &amp;&amp; hostname\n  - chmod +x mvnw\n\nbuild:\n  stage: build\n  script: .\/mvnw -q -B package\n  artifacts:\n    paths:\n      - target\/demo-0.0.1-SNAPSHOT.jar<\/code><\/pre>\n\n\n\n<p>\u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b CI\/CD \u0438 \u043d\u0430\u0441\u043b\u0430\u0436\u0434\u0430\u0442\u044c\u0441\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c \u0442\u0435\u043c\u043b\u0435\u0439\u0442\u0430 \u0432 \u043d\u0430\u0448\u0435\u043c \u0440\u0430\u043d\u043d\u0435\u0440\u0435! \u0412 \u043b\u043e\u0433\u0430\u0445 \u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u0430 \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430 \u0440\u0430\u043d\u043d\u0435\u0440\u0430 \u0432 \u0432\u044b\u0432\u043e\u0434\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b hostname, \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0439 \u0432 before_script<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u0418\u0442\u043e\u0433<\/h3>\n\n\n\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432\u0441\u0451 \u043b\u0435\u0433\u043a\u043e, \u0437\u0430 \u043f\u0430\u0440\u0443 \u0447\u0430\u0441\u043e\u0432. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u043e \u043f\u0430\u0440\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u043d\u043e \u043e\u043d\u0438 \u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0433\u0443\u0433\u043b\u0438\u043b\u0438\u0441\u044c \u0438 \u0440\u0435\u0448\u0438\u043b\u0438\u0441\u044c.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u043f\u0430\u0440\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0434\u043b\u044f \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432. \u0421\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c GitLab EE, GitLab Runner \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c CI \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0433\u043e. \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0432 \u0442\u0430\u043d\u043a\u0435: GitLab Runner \u044d\u0442\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u0430\u0432\u044f\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"none","footnotes":""},"categories":[17,18,10],"tags":[20,19,12],"class_list":["post-106","post","type-post","status-publish","format-standard","hentry","category-devops","category-gitlab","category-10","tag-ci-cd","tag-gitlab-ci","tag-12"],"_links":{"self":[{"href":"https:\/\/alse-code.ru\/wp-json\/wp\/v2\/posts\/106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alse-code.ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alse-code.ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alse-code.ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alse-code.ru\/wp-json\/wp\/v2\/comments?post=106"}],"version-history":[{"count":2,"href":"https:\/\/alse-code.ru\/wp-json\/wp\/v2\/posts\/106\/revisions"}],"predecessor-version":[{"id":223,"href":"https:\/\/alse-code.ru\/wp-json\/wp\/v2\/posts\/106\/revisions\/223"}],"wp:attachment":[{"href":"https:\/\/alse-code.ru\/wp-json\/wp\/v2\/media?parent=106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alse-code.ru\/wp-json\/wp\/v2\/categories?post=106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alse-code.ru\/wp-json\/wp\/v2\/tags?post=106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}