{"id":9638,"date":"2020-03-14T06:40:30","date_gmt":"2020-03-13T21:40:30","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=9638"},"modified":"2023-05-27T19:02:55","modified_gmt":"2023-05-27T10:02:55","slug":"%e3%80%90gitlab%e3%80%91%e3%80%8cgitlab-ci-cd-jobs%e3%80%8d%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=9638","title":{"rendered":"\u3010GitLab\u3011\u300cGitLab CI\/CD Jobs\u300d\u306b\u3064\u3044\u3066"},"content":{"rendered":"<h2>GitLab CI\/CD Jobs\u306e\u7279\u5fb4<\/h2>\n<ul>\n<li>\u7d99\u7d9a\u7684\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u7ba1\u7406\u3059\u308bWeb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u6301\u3064\u3002<\/li>\n<li>GitLab\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u7279\u5b9a\u30d6\u30e9\u30f3\u30c1\u306e\u66f4\u65b0\u3084\u30de\u30fc\u30b8\u3092\u30c8\u30ea\u30ac\u30fc\u3068\u3057\u3066\u30d3\u30eb\u30c9\u30b8\u30e7\u30d6\u3084\u30c6\u30b9\u30c8\u30b8\u30e7\u30d6\u3092\u547c\u3073\u51fa\u305b\u308b\u3002<\/li>\n<li>Go\u8a00\u8a9e\u306e\u30d0\u30a4\u30ca\u30ea\u304c\u5b9f\u884c\u3067\u304d\u308b\u74b0\u5883\u3067\u3042\u308c\u3070OS(Windows\u3001Linux\u3001Docker)\u554f\u308f\u305a\u5b9f\u884c\u3067\u304d\u308b\u3002<\/li>\n<li>\u300cGitLab Runner\u30d7\u30ed\u30bb\u30b9\u300d\u306b\u3088\u308a\u4e26\u5217\u51e6\u7406\u304c\u53ef\u80fd\u3002<\/li>\n<li>\u5b9f\u884c\u4e2d\u306e\u30ed\u30b0\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/li>\n<li>\u30b8\u30e7\u30d6\u306e\u30aa\u30fc\u30c8\u30b9\u30b1\u30fc\u30eb\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<li>\u30d3\u30eb\u30c9\u3057\u305f\u6210\u679c\u7269\u3092\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<h2>GitLab Runner\u30d7\u30ed\u30bb\u30b9\u306b\u3064\u3044\u3066<\/h2>\n<p><span style=\"color: #ff0000;\"><strong>GitLab CI\/CD\u304b\u3089\u6307\u793a\u3055\u308c\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u305f\u308a\u3001\u4e00\u6642\u7684\u306bDocker\u30b3\u30f3\u30c6\u30ca\u3092\u751f\u6210\u3057\u3066\u30b8\u30e7\u30d6\u3092\u5b9f\u884c\u3059\u308b\u30d7\u30ed\u30bb\u30b9<\/strong><\/span>\u3067\u3059\u3002\uff08Jeckins\u3067\u3044\u3046\u3068\u3053\u308d\u306e\u30b9\u30ec\u30fc\u30d6\u30ce\u30fc\u30c9\u3068\u3044\u3046\u5f79\u5272\uff09GitLab CI\/CD\u306f\u5404\u30e9\u30f3\u30ca\u30fc\u306b\u30d3\u30eb\u30c9\u5b9f\u884c\u3092\u8981\u6c42\u3057\u3066\u305d\u306e\u7d50\u679c\u3092\u7ba1\u7406\u3059\u308b\u5f79\u5272\u3092\u62c5\u3063\u3066\u3044\u307e\u3059\u3002\u6ce8\u610f\u70b9\u3068\u3057\u3066\u306f\u3001GitLab CI\/CD\u3068Runner\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u306f\u4f9d\u5b58\u95a2\u4fc2\u304c\u3042\u308b\u306e\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306f\u610f\u8b58\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>Executor\u306e\u7a2e\u985e<\/h3>\n<p>GitLab Runner\u306b\u306f\u300cExecutor\u300d\u3068\u3044\u3046\u30b8\u30e7\u30d6\u306e\u5b9f\u884c\u65b9\u5f0f\u304c\u3042\u308a\u307e\u3059\u3002\u4e00\u3064\u306e\u30d7\u30ed\u30bb\u30b9\u3067\u8907\u6570\u306eExecutor\u3092\u767b\u9332\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h4>Shell Executor<\/h4>\n<p>Runnner\u304c\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u30d3\u30eb\u30c9\u3084\u30c6\u30b9\u30c8\u3092\u884c\u3044\u307e\u3059\u3002Linux\u7cfb\u3067\u306fBash\u3001Windows\u7cfb\u3067\u306fPowerShell\u3084Bash on Windows\u304c\u9078\u3070\u308c\u307e\u3059\u3002<\/p>\n<h4>Docker Executor<\/h4>\n<p>Docker API\u3092\u7d4c\u7531\u3057\u3066<span style=\"color: #ff0000;\"><strong>Docker Engine\u3068\u63a5\u7d9a\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u5404\u30d3\u30eb\u30c9\u4f5c\u696d\u3092\u884c\u3044\u307e\u3059\u3002<\/strong><\/span>\u4e8b\u524d\u306bDocker\u74b0\u5883\u3055\u3048\u7528\u610f\u3057\u3066\u304a\u3051\u3070\u3001\u540c\u69d8\u306e\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u3092\u4f7f\u3046\u3053\u3068\u306b\u3088\u308a\u3069\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u304b\u3089\u3082\u518d\u73fe\u6027\u306e\u3042\u308b\u30d3\u30eb\u30c9\u3084\u30c6\u30b9\u30c8\u304c\u5b9f\u884c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>Runnner\u306e\u7a2e\u985e<\/h3>\n<p>\u5404\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30b8\u30e7\u30d6\u7279\u6027\u306b\u3088\u3063\u3066\u4e0b\u8a182\u7a2e\u985e\u304b\u3089\u9078\u3076\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<ul>\n<li>Shared Runners<\/li>\n<li>Specific Runnners<\/li>\n<\/ul>\n<h4>Shared Runnners<\/h4>\n<p><span style=\"color: #ff0000;\"><strong>\u8907\u6570\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30b8\u30e7\u30d6\u5b9f\u884c\u3092\u5171\u6709\u306eRunner\u3067\u51e6\u7406\u3059\u308b\u65b9\u5f0f<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002\u300cfairusage queue\u300d\u3068\u3044\u3046\u65b9\u5f0f\u3067\u30b8\u30e7\u30d6\u304c\u30ad\u30e5\u30fc\u30a4\u30f3\u30b0\u3055\u308c\u3066\u73fe\u5728\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u30b8\u30e7\u30d6\u306e\u6570\u304c\u6700\u3082\u5c11\u306a\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304b\u3089\u30b8\u30e7\u30d6\u3092\u5272\u308a\u5f53\u3066\u3089\u308c\u308b\u3088\u3046\u306b\u8a2d\u8a08\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3088\u3063\u3066\u3001<span style=\"color: #ff0000;\"><strong>\u7279\u5b9a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u305f\u304f\u3055\u3093\u30b8\u30e7\u30d6\u3092\u4f5c\u6210\u3057\u305f\u3068\u3057\u3066\u3082\u4ed6\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u5f85\u3061\u72b6\u614b\u304c\u767a\u751f\u3057\u3066\u4f7f\u3048\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u304c\u8d77\u3053\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/strong><\/span><\/p>\n<p>\u306a\u304a\u3001\u30b8\u30e7\u30d6\u8a2d\u5b9a\u81ea\u4f53\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306b\u884c\u3044\u307e\u3059\u3002<\/p>\n<h4>Specific Runnners<\/h4>\n<p><span style=\"color: #ff0000;\"><strong>\u7279\u5b9a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30b8\u30e7\u30d6\u306e\u307f\u3092\u5b9f\u884c\u3059\u308b\u65b9\u5f0f<\/strong><\/span>\u3067\u3059\u3002FIFO\u65b9\u5f0f\u3067\u30b8\u30e7\u30d6\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u8981\u6c42\u304c\u3042\u3063\u305f\u9806\u756a\u306b\u30b8\u30e7\u30d6\u3092\u51e6\u7406\u3057\u3066\u3044\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"GitLab CI\/CD Jobs\u306e\u7279\u5fb4 \u7d99\u7d9a\u7684\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u7ba1\u7406\u3059\u308bWeb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u6301\u3064\u3002 GitLab\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u7279\u5b9a\u30d6\u30e9\u30f3\u30c1\u306e\u66f4\u65b0\u3084\u30de\u30fc\u30b8\u3092\u30c8\u30ea\u30ac\u30fc\u3068\u3057\u3066\u30d3\u30eb\u30c9\u30b8\u30e7\u30d6\u3084\u30c6\u30b9\u30c8\u30b8\u30e7\u30d6\u3092\u547c [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[98],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/9638"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9638"}],"version-history":[{"count":6,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/9638\/revisions"}],"predecessor-version":[{"id":20202,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/9638\/revisions\/20202"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9638"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}