{"id":1321,"date":"2021-03-08T09:11:14","date_gmt":"2021-03-08T00:11:14","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/?p=1321"},"modified":"2021-03-09T11:09:52","modified_gmt":"2021-03-09T02:09:52","slug":"circleci-orbs","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2021\/03\/08\/circleci-orbs\/","title":{"rendered":"CircleCI Orbs\u3092\u4f7f\u3063\u3066\u3001Amazon ECS\u306b\u52b9\u7387\u7684\u306b\u30c7\u30d7\u30ed\u30a4\u3057\u3088\u3046"},"content":{"rendered":"

\u571f\u5c45\u3067\u3059\u3002<\/p>\n

\u672c\u65e5\u306fCircleCI Orbs<\/code> \u3092\u6d3b\u7528\u3057\u3001\u4f7f\u308f\u306a\u3044\u5834\u5408\u3088\u308a\u3082\u7c21\u6f54\u306a\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067 Amazon ECS<\/code> \u3078\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n

Orbs \u3068\u306f\uff1f<\/h2>\n

Orbs<\/code> \u3068\u306f\u3001CircleCI<\/code>\u306e\u8a2d\u5b9a\u306e\u8a18\u8ff0\u3092\u307e\u3068\u3081\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u5316\u3057\u3001\u8ab0\u3067\u3082\u7c21\u5358\u306b\u518d\u5229\u7528\u53ef\u80fd\u3068\u3059\u308b\u305f\u3081\u306b\u5171\u6709\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3067\u3059\u3002\u4e0b\u8a18\u306eOrbs Registry<\/code>\u306e\u30da\u30fc\u30b8\u3088\u308a\u3001\u9023\u643a\u3057\u305f\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8a00\u8a9e\u3084\u3001AWS\u306e\u30b5\u30fc\u30d3\u30b9\u540d\u306a\u3069\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u3067\u691c\u7d22\u3059\u308b\u3068\u591a\u304f\u306eOrbs<\/code>\u304c\u898b\u3064\u304b\u308a\u307e\u3059\u3002
\nOrb Registry<\/a>
\n
\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a><\/p>\n

\u3053\u306e\u3046\u3061CERTIFIED<\/code> \u306e\u30de\u30fc\u30af\u304c\u4ed8\u3044\u3066\u3044\u308b\u3082\u306e\u306fCircleCI<\/code>\u30c1\u30fc\u30e0\u306b\u3088\u3063\u3066\u5b9f\u88c5\u30fb\u30c6\u30b9\u30c8\u3055\u308c\u305f\u3082\u306e\u3067\u3001\u63b2\u8f09\u3055\u308c\u3066\u3044\u308b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3084\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3082\u5145\u5b9f\u3044\u308b\u306e\u3067\u5b89\u5fc3\u3057\u3066\u5229\u7528\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002
\n
\"\"<\/a><\/p>\n

\u305d\u3046\u3067\u306a\u3044\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u88fd\u306e\u3082\u306e\u306f\u3001\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u4e88\u3081\u8a2d\u5b9a\u3067\u8a31\u53ef\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002
\n
\"\"<\/a>
\n\u203bOrganization Settings<\/code> > Security<\/code> > Orb Security Settings<\/code> \u3088\u308a\u8a31\u53ef<\/p>\n

\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304c\u4e0d\u89aa\u5207\u306a\u7269\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u4e2d\u306b\u306fCERTIFIED<\/code>\u306b\u306f\u7121\u3044\u30cb\u30c3\u30c1\u306a\u76ee\u7684\u3092\u30ab\u30d0\u30fc\u3057\u3066\u3044\u308b\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002\u5404Orbs<\/code>\u306e\u30da\u30fc\u30b8\u306b\u306f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3082\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u4e2d\u3067\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u4e0a\u3067\u5229\u7528\u3059\u308b\u3053\u3068\u3092\u691c\u8a0e\u3057\u3066\u3082\u826f\u3044\u3067\u3057\u3087\u3046\u3002
\n
\"\"<\/a>
\n\u203bCERTIFIED<\/code>\u306e\u3082\u306e\u3067\u3042\u3063\u3066\u3082\u3001\u4e2d\u3067\u3069\u306e\u3088\u3046\u306a\u51e6\u7406\u304c\u884c\u308f\u308c\u3066\u3044\u308b\u306e\u304b\u6c17\u306b\u306a\u308b\u3068\u304d\u306b\u3059\u3050\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3067\u304d\u308b\u306e\u306f\u5b09\u3057\u3044\u3067\u3059\u306d\u3002<\/p>\n

\u306a\u305cOrbs\u3092\u4f7f\u3046\u306e\u304b\uff1f<\/h2>\n

Orbs<\/code>\u3092\u6d3b\u7528\u3059\u308c\u3070\u81ea\u524d\u3067\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u8a18\u8ff0\u3059\u308b\u5206\u91cf\u304c\u8efd\u6e1b\u3055\u308c\u307e\u3059\u3002CI\/CD\u306e\u8a2d\u5b9a\u306b\u304b\u3051\u308b\u6642\u9593\u3092\u7bc0\u7d04\u3067\u304d\u3001\u52b9\u7387\u7684\u306b\u958b\u767a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n

Orbs \u306e\u5c0e\u5165\u65b9\u6cd5<\/h2>\n

\u307e\u305a\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001orbs<\/code> \u30ad\u30fc\u306b\u5c0e\u5165\u3057\u305f\u3044\u3082\u306e\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002
\n\u6e96\u5099\u3068\u3057\u3066\u306f\u3053\u308c\u3060\u3051\u3067\u3059\u3002<\/p>\n

version: 2.1\n\norbs:\n  aws-ecr: circleci\/aws-ecr@6.15.3\n  aws-ecs: circleci\/aws-ecs@2.0.0<\/code><\/pre>\n

\u203b\u3053\u3053\u3067\u306f CERTIFIED<\/code>\u306e\u7269\u304b\u3089 Amazon ECR<\/code>\u3001Amazon ECS<\/code>\u3068\u9023\u643a\u3059\u308b\u3082\u306e\u3092\u9078\u629e<\/p>\n

Amazon ECR\u3078\u306e\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u306e\u30d7\u30c3\u30b7\u30e5<\/h2>\n

\u30d3\u30eb\u30c9\u3057\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u3092Amazon ECR<\/code>\u306b\u30d7\u30c3\u30b7\u30e5\u3057\u307e\u3059\u3002<\/p>\n

    \n
  • \u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u306e\u30d3\u30eb\u30c9<\/li>\n
  • Amazon ECR<\/code>\u3078\u306e\u30ed\u30b0\u30a4\u30f3<\/li>\n
  • \u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u306eAmazon ECR<\/code> \u3078\u306e\u30d7\u30c3\u30b7\u30e5<\/li>\n<\/ul>\n

    \u306e\u30b9\u30c6\u30c3\u30d7\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u304c\u3001Orbs<\/code>\u306a\u3089\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n

    push_and_deploy:\n    <<: *defaults\n    steps:\n      - checkout\n      - aws-ecr\/build-and-push-image:\n           account-url: AWS_ECR_ACCOUNT_URL\n           repo: "\u30ea\u30dd\u30b8\u30c8\u30ea\u540d"\n           tag: "\u30bf\u30b0\u540d"<\/code><\/pre>\n

    \u203b account-url \u306e AWS_ECR_ACCOUNT_URL<\/code> \u306fCircleCI<\/code>\u306e\u74b0\u5883\u5909\u6570\u306b\u4e88\u3081\u30d7\u30c3\u30b7\u30e5\u5148\u306eAmazon ECR<\/code>\u306eURL\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n

    \u3010Orbs\u306e\u6a5f\u80fd\u3011Job\u3068Command<\/h3>\n

    Orbs<\/code> \u306e\u6a5f\u80fd\u306b\u306f CircleCI<\/code> \u306e Job<\/code> \u306b\u76f8\u5f53\u3059\u308b\u3082\u306e\u3068Command<\/code> \u306b\u76f8\u5f53\u3059\u308b\u3082\u306e\u304c\u5b58\u5728\u3057\u3001\u5bfe\u5fdc\u3059\u308b\u7b87\u6240\u306b\u8a18\u8ff0\u3057\u3066\u5229\u7528\u3057\u307e\u3059\u3002\u4e0a\u8a18\u306e\u5834\u5408\u306fsteps<\/code>\u306b\u8a18\u8f09\u3057\u3066\u304a\u308a\u3001Command<\/code>\u306ebuild-and-push-image<\/code>\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002
    \n\u8a73\u3057\u304f\u306f\u5404 Orbs<\/code> \u306e\u30da\u30fc\u30b8\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n

    Amazon ECS\u3078\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d7\u30ed\u30a4<\/h2>\n

    \u6700\u5f8c\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092Amazon ECS<\/code> \u306b\u30c7\u30d7\u30ed\u30a4\u3057\u307e\u3059\u3002
    \n\u4ee5\u4e0b\u306estep\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n

    push_and_deploy:\n    <<: *defaults\n    steps:\n      - aws-ecr\/build-and-push-image:\n           ~ (\u7701\u7565) ~\n      - aws-ecs\/update-service:\n           cluster-name: "\u30af\u30e9\u30b9\u30bf\u30fc\u540d"\n           family: "\u30bf\u30b9\u30af\u540d"\n           service-name: "\u30b5\u30fc\u30d3\u30b9\u540d"<\/code><\/pre>\n

    \u307e\u3068\u3081<\/h2>\n

    \u3053\u306e\u3088\u3046\u306b\u3001Orbs<\/code> \u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u52b9\u7387\u7684\u306b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u8a18\u8ff0\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3046\u307e\u304f\u4f7f\u3044\u3053\u306a\u305b\u308c\u3070\u3001CI\/CD\u3092\u7d20\u65e9\u304f\u5b9f\u88c5\u3057\u3066\u30d3\u30b8\u30cd\u30b9\u30ed\u30b8\u30c3\u30af\u306b\u3088\u308a\u6ce8\u529b\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

    \u571f\u5c45\u3067\u3059\u3002 \u672c\u65e5\u306fCircleCI Orbs \u3092\u6d3b\u7528\u3057\u3001\u4f7f\u308f\u306a\u3044\u5834\u5408\u3088\u308a\u3082\u7c21\u6f54\u306a\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067 Amazon ECS \u3078\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3059\u3002 Orbs \u3068\u306f\uff1f Orbs \u3068\u306f\u3001CircleCI\u306e\u8a2d\u5b9a\u306e\u8a18\u8ff0\u3092\u307e\u3068\u3081\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u5316\u3057\u3001\u8ab0\u3067\u3082\u7c21\u5358\u306b\u518d\u5229\u7528\u53ef\u80fd\u3068\u3059\u308b\u305f\u3081\u306b\u5171\u6709\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3067\u3059\u3002\u4e0b\u8a18\u306eOrbs Registry\u306e\u30da\u30fc\u30b8\u3088\u308a\u3001\u9023\u643a\u3057\u305f\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8a00\u8a9e […]<\/p>\n","protected":false},"author":11,"featured_media":1332,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[18],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/1321"}],"collection":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/comments?post=1321"}],"version-history":[{"count":10,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/1321\/revisions"}],"predecessor-version":[{"id":1336,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/1321\/revisions\/1336"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/media\/1332"}],"wp:attachment":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/media?parent=1321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/categories?post=1321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/tags?post=1321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}