{"id":44425,"date":"2023-01-04T15:45:23","date_gmt":"2023-05-22T21:24:34","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%93%e9%aa%8ccicd%e3%80%82\/"},"modified":"2024-04-29T08:31:50","modified_gmt":"2024-04-29T00:31:50","slug":"%e4%bd%93%e9%aa%8ccicd%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%93%e9%aa%8ccicd%e3%80%82\/","title":{"rendered":"\u4f53\u9a8cCICD"},"content":{"rendered":"<h2>\u9996\u5148<\/h2>\n<p>\u8fd9\u7bc7\u6587\u7ae0\u662f\u5173\u4e8e\u89c2\u770b\u4e86\u4e00\u4e2a\u540d\u4e3a&#8221;Serverless is simple. Do I need CI\/CD?&#8221;\u7684\u89c6\u9891\u540e\uff0c\u5199\u6210\u4e86\u4e00\u7bc7\u540d\u4e3a&#8221;\u5b9e\u9645\u5c1d\u8bd5\u8fc7\u7684&#8221;\u6587\u7ae0\u3002<\/p>\n<h2>CI\/CD \u7684\u6d41\u7a0b\u662f\u505a\u4ec0\u4e48\u7684\uff1f<\/h2>\n<p>\u4ece\u5c06\u4ee3\u7801\u63d0\u4ea4\u5230\u4ed3\u5e93\u7684\u90a3\u4e00\u523b\u8d77\uff0c\u76f4\u5230\u8fd9\u4e9b\u53d8\u66f4\u5411\u7528\u6237\u5c55\u793a\uff0c\u81f3\u5c11\u9700\u8981\u6267\u884c\u51e0\u4e2a\u6b65\u9aa4\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d587637434c4406ce0abe\/4-0.png\" alt=\"SoftwareSupplyChain.png\" \/><\/div>\n<h2>\u6fc0\u6d3b\u8c37\u6b4c\u4e91API\u3002<\/h2>\n<p>\u8fde\u63a5\u5230\u60f3\u8981\u6784\u5efa\u6b64CI\/CD\u7684GCP\u9879\u76ee\u7684\u63a7\u5236\u53f0\u3002<\/p>\n<p>Cloud Build API \u4e91\u6784\u5efaAPI<br \/>\nArtifact Registry API \u6784\u4ef6\u6ce8\u518cAPI<br \/>\nCloud Run Admin API \u4e91\u670d\u52a1\u7ba1\u7406API<\/p>\n<p>\u6fc0\u6d3b\u8fd9\u4e9bAPI\u3002<br \/>\n\u6b64\u5916\uff0c\u5bf9\u4e8e\u5176\u4ed6API\u7684\u6fc0\u6d3b\uff0c\u5e94\u6839\u636e\u9700\u8981\u9002\u65f6\u8fdb\u884c\u3002<\/p>\n<h2>\u6211\u60f3\u8981\u590d\u5236\u8fd9\u6bb5\u793a\u8303\u4ee3\u7801\u3002<\/h2>\n<p>&nbsp;<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d587637434c4406ce0abe\/11-1.png\" alt=\"github-fork2.png\" \/><\/div>\n<h2>\u8bf7\u9009\u62e9\u4e00\u79cd\u7f16\u7a0b\u8bed\u8a00\u3002<\/h2>\n<p>\u8bf7\u6839\u636e\u4e2a\u4eba\u559c\u597d\u9009\u62e9\uff0c\u793a\u4f8b\u4ee3\u7801\u53ef\u7528\u4e8e\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u3002<\/p>\n<p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u9009\u62e9\u4e86Golang\uff0c\u5e76\u64cd\u4f5ccloud-code-samples\/golang\/go-cloud-run-hello-world\u8fd9\u4e2a\u76ee\u5f55\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d587637434c4406ce0abe\/15-0.png\" alt=\"sample-gengo-go.png\" \/><\/div>\n<h2>\u8ba9\u6211\u4eec\u51c6\u5907\u5728Artifact Registry\u4e2d\u521b\u5efa\u5bb9\u5668\u955c\u50cf\u3002<\/h2>\n<p>\u5c06\u5bb9\u5668\u955c\u50cf\u4fdd\u5b58\u7684repository\u90e8\u7f72\u5230Artifact Registry\u4e2d\u3002<\/p>\n<p>\u5b58\u50a8\u5e93\u540d\u79f0\uff1a\u8bf7\u968f\u610f\u547d\u540d\u3002<br \/>\n\u683c\u5f0f\uff1aDocker<br \/>\n\u5730\u533a\uff1a\u8bf7\u9009\u62e9\u6700\u8fd1\u7684\u5730\u533a\u3002<br \/>\n\u5176\u4ed6\u9879\u76ee\u5219\u9ed8\u8ba4\u8bbe\u7f6e\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d587637434c4406ce0abe\/19-0.png\" alt=\"artifact-repo-create.png\" \/><\/div>\n<h2>\u521b\u5efa Cloud Build \u89e6\u53d1\u5668\u3002<\/h2>\n<p>CloudBuild \u662f\u4e00\u79cd\u65e0\u670d\u52a1\u5668\u5e73\u53f0\uff0c\u53ef\u4ee5\u521b\u5efaCICD\u6d41\u6c34\u7ebf\u3002<\/p>\n<p>\u89e6\u53d1\u5668\u540d\u79f0\uff1aHello-Cloud-Run-Pipeline<br \/>\n\u533a\u57df\uff1a\u9009\u62e9\u6700\u8fd1\u7684\u533a\u57df<br \/>\n\u4e8b\u4ef6\uff1a\u63a8\u9001\u5230\u5206\u652f<br \/>\n\u4ed3\u5e93\uff1agithub.account\/cloud-code-samples<br \/>\n\u203b \u5982\u679c\u4ed3\u5e93\u4e0d\u5728\u9009\u62e9\u9875\u9762\u4e0a\uff0c\u8bf7\u8fde\u63a5\u5230\u65b0\u4ed3\u5e93\u3002<br \/>\n\u5206\u652f\uff1av1\uff08\u8fd9\u6b21\u9009\u62e9\u9ed8\u8ba4\u5206\u652f\uff09<br \/>\n\u683c\u5f0f\uff1acloudbuild\u914d\u7f6e\u6587\u4ef6<br \/>\n\u4f4d\u7f6e\uff1a\u4ed3\u5e93<br \/>\ncloudbuild\u914d\u7f6e\u6587\u4ef6\u4f4d\u7f6e\uff1a\u53c2\u8003\u4e0b\u56fe\u622a\u5c4f\u3002<\/p>\n<p>\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u53ea\u9700\u8981\u5c06 Cloud Build \u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u7684\u8def\u5f84\u66f4\u6539\u5373\u53ef\uff0c\u800c\u57fa\u672c\u4e0a\u548c\u89c6\u9891\u7684\u8bf4\u660e\u4e00\u6837\u8fdb\u884c\u5c31\u6ca1\u6709\u95ee\u9898\u3002<\/p>\n<p>\u8fd9\u7bc7\u6587\u7ae0\u662f\u4e3a\u4e86\u5728`golang\/go-cloud-run-hello-world`\u9879\u76ee\u4e2d\u521b\u5efa`cloudbuild.yaml`\u800c\u5b58\u5728\u7684\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d587637434c4406ce0abe\/25-0.png\" alt=\"cloudbuild-trigger6.png\" \/><\/div>\n<h2>\u521b\u5efacloudbuild.yaml\u6587\u4ef6<\/h2>\n<p>\u6253\u5f00VS Code\u7b49\u7f16\u8f91\u5de5\u5177\uff0c\u521b\u5efa\u4e00\u4e2acloudbuild.yaml\u6587\u4ef6\u3002<br \/>\n\u7531\u4e8e\u8be5yaml\u6587\u4ef6\u9009\u62e9\u4e86asia-northeast1\u5730\u533a\uff0c\u8bf7\u6839\u636e\u6700\u8fd1\u7684\u5730\u533a\u8fdb\u884c\u9002\u5f53\u7684\u4fee\u6539\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u7531\u4e8e\u9009\u62e9\u4e86Golang\uff0c\u6240\u4ee5\u5982\u679c\u9009\u62e9\u5176\u4ed6\u7f16\u7a0b\u8bed\u8a00\uff0c\u540c\u6837\u9700\u8981\u8fdb\u884c\u76f8\u5e94\u7684\u4fee\u6539\u3002<\/p>\n<pre class=\"post-pre\"><code>steps:\r\n  # Build app\r\n  - name: 'gcr.io\/cloud-builders\/docker'\r\n    args: ['build', '-f', 'golang\/go-cloud-run-hello-world\/Dockerfile', '-t', 'asia-northeast1-docker.pkg.dev\/$PROJECT_ID\/my-repo\/hello:$COMMIT_SHA', '.\/golang\/go-cloud-run-hello-world']\r\n    id: BUILD\r\n\r\n  # Storage of the image\r\n  - name: 'gcr.io\/cloud-builders\/docker'\r\n    args: ['push', 'asia-northeast1-docker.pkg.dev\/$PROJECT_ID\/my-repo\/hello:$COMMIT_SHA']\r\n    id: STORAGE\r\n\r\n  # Deploy app\r\n  - name: 'gcr.io\/cloud-builders\/gcloud'\r\n    args: ['run', 'deploy', 'hello-site', \r\n        '--image', 'asia-northeast1-docker.pkg.dev\/$PROJECT_ID\/my-repo\/hello:$COMMIT_SHA',\r\n        '--region', 'asia-northeast1',\r\n        '--platform', 'managed',\r\n        '--allow-unauthenticated']\r\n    id: DEPLOY\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d587637434c4406ce0abe\/30-0.png\" alt=\"cicd-cloudbuild.png\" \/><\/div>\n<h2>\u8ba9\u6211\u4eec\u4fee\u590d\u8fd9\u4e2a\u9519\u8bef\u3002<\/h2>\n<p>\u5728\u89c6\u9891\u4e2d\uff0c\u867d\u7136\u6ca1\u6709\u53d1\u751f\u9519\u8bef\uff0c\u4f46\u5b9e\u9645\u5c1d\u8bd5\u65f6\u53ef\u80fd\u7531\u4e8eAPI\u672a\u542f\u7528\u6216\u670d\u52a1\u8d26\u6237\u6743\u9650\u4e0d\u8db3\u800c\u5bfc\u81f4\u9519\u8bef\u3002<\/p>\n<p>API\u7684\u542f\u7528\u5728\u672c\u6587\u5f00\u5934\u6709\u89e3\u91ca\uff0c<br \/>\n\u5f53\u6267\u884c\u4e91\u6784\u5efa\u89e6\u53d1\u5668\u65f6\uff0c\u5982\u679c\u670d\u52a1\u5e10\u53f7\u6743\u9650\u4e0d\u8db3\uff0c<br \/>\n\u5219\u4f1a\u8f93\u51fa\u4ee5\u4e0b\u9519\u8bef\u5e76\u5bfc\u81f4\u89e6\u53d1\u5668\u5f02\u5e38\u7ec8\u6b62\u3002<\/p>\n<pre class=\"post-pre\"><code>Step #2: ERROR: (gcloud.run.deploy) PERMISSION_DENIED: Permission 'run.services.get' denied on resource ...\r\n<\/code><\/pre>\n<p>\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u60a8\u9700\u8981\u9488\u5bf9Cloud Build\u670d\u52a1\u8d26\u53f7\uff08@cloudbuild.gserviceaccount.com\uff09\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff1a<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Cloud Run\u7ba1\u7406\u8005\u30ed\u30fc\u30eb\uff08run.admin\uff09<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30b5\u30fc\u30d3\u30b9\u30a2\u30ab\u30a6\u30f3\u30c8\u30e6\u30fc\u30b6\u30fc\u30ed\u30fc\u30eb\uff08iam.serviceAccountUser\uff09<\/ul>\n<p>\u5fc5\u987b\u5206\u914d\u7ed9\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d587637434c4406ce0abe\/38-0.png\" alt=\"cloudbuild-serviceaccout.png\" \/><\/div>\n<h2>\u8bd5\u8bd5\u8fd0\u884cCloud Run\u3002<\/h2>\n<p>\u5f53\u9519\u8bef\u89e3\u51b3\u5b8c\u6bd5\u5e76\u4e14\u4e91\u6784\u5efa\u89e6\u53d1\u5668\u6b63\u5e38\u5b8c\u6210\u65f6\uff0c\u60a8\u6700\u7ec8\u53ef\u4ee5\u6267\u884c\u5df2\u90e8\u7f72\u7684Cloud Run\u670d\u52a1\u7684\u94fe\u63a5\uff0c\u4ee5\u786e\u8ba4\u5e94\u7528\u7a0b\u5e8f\u6b63\u5728\u8fd0\u884c\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d587637434c4406ce0abe\/41-1.png\" alt=\"cicd-cloudrun1.png\" \/><\/div>\n<h2>\u8ba9\u6211\u4eec\u8fdb\u884cCloud Run\u7684\u91d1\u4e1d\u96c0\u6d4b\u8bd5\u53d1\u5e03\u3002<\/h2>\n<p>\u6700\u540e\uff0c\u6211\u5e0c\u671b\u53ef\u4ee5\u5b9e\u65bdCanary Test\u7684\u53d1\u5e03\uff0c\u5e76\u7528\u6b64\u4f5c\u4e3a\u672c\u6587\u7684\u7ed3\u5c3e\u3002<\/p>\n<p>\u8fd9\u8fb9\u4e5f\u4f1a\u6839\u636e\u89c6\u9891\u7684\u5185\u5bb9\u8fdb\u884c\uff0c\u4f46\u662f\u8981\u505a\u7684\u4e8b\u60c5\u6709\u4e24\u4e2a\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u4f5c\u6210\u3057\u305f cloudbuild.yaml \u306e Deploy App step \u3067\u3001&#8211;no-traffic \u3092\u8ffd\u52a0\u3059\u308b\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>Canary release step \u3092\u8ffd\u8a18\u3059\u308b\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u5df2\u5bf9Canary Test release\u8fdb\u884c\u4fee\u6b63\u7684cloudbuild.yaml\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code>steps:\r\n  # Build app\r\n  - name: 'gcr.io\/cloud-builders\/docker'\r\n    args: ['build', '-f', 'golang\/go-cloud-run-hello-world\/Dockerfile', '-t', 'asia-northeast1-docker.pkg.dev\/$PROJECT_ID\/my-repo\/hello:$COMMIT_SHA', '.\/golang\/go-cloud-run-hello-world']\r\n    id: BUILD\r\n\r\n  # Storage of the image\r\n  - name: 'gcr.io\/cloud-builders\/docker'\r\n    args: ['push', 'asia-northeast1-docker.pkg.dev\/$PROJECT_ID\/my-repo\/hello:$COMMIT_SHA']\r\n    id: STORAGE\r\n\r\n  # Deploy app\r\n  - name: 'gcr.io\/cloud-builders\/gcloud'\r\n    args: ['run', 'deploy', 'hello-site', \r\n        '--image', 'asia-northeast1-docker.pkg.dev\/$PROJECT_ID\/my-repo\/hello:$COMMIT_SHA',\r\n        '--region', 'asia-northeast1',\r\n        '--platform', 'managed',\r\n        '--allow-unauthenticated',\r\n        '--no-traffic']\r\n    id: DEPLOY\r\n\r\n  # Canary release\r\n  - name: 'gcr.io\/cloud-builders\/gcloud'\r\n    args: ['run', 'services', 'update-traffic', 'hello-site',\r\n        '--region', 'asia-northeast1',\r\n        '--to-revisions=LATEST=50']\r\n    id: CANARY\r\n<\/code><\/pre>\n<p>\u5c06\u6b64cloudbuild.yaml\u63a8\u9001\u5230GitHub\uff0cCloud Build\u89e6\u53d1\u5668\u5c06\u4f1a\u6267\u884c\u5e76\u6210\u529f\u5b8c\u6210\uff0c\u7136\u540eCloud Run\u5185\u7684\u7248\u672c\u6d41\u91cf\u5c06\u4f1a\u88ab\u5206\u5272\uff0c\u4ece\u800c\u5b9e\u73b0\u91d1\u4e1d\u96c0\u6d4b\u8bd5\u53d1\u5e03\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d587637434c4406ce0abe\/49-0.png\" alt=\"CanaryTestrelease1.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d587637434c4406ce0abe\/50-1.png\" alt=\"CanaryTestrelease3.png\" \/><\/div>\n<h2>\u7ed3\u675f<\/h2>\n<p>\u6211\u770b\u4e86\u89c6\u9891\u540e\uff0c\u5199\u4e86\u4e00\u7bc7\u5173\u4e8e\u5b9e\u9645\u64cd\u4f5c\u7684\u5185\u5bb9\u3002<\/p>\n<p>\u5728\u5b9e\u9645\u5c1d\u8bd5\u4e2d\uff0c\u6211\u4e5f\u9047\u5230\u4e86\u4e00\u4e9b\u56f0\u96be\u3002<\/p>\n<p>\u5bf9\u90a3\u4e9b\u60f3\u8981\u5c1d\u8bd5CICD\u7ba1\u9053\u7684\u4eba\u6765\u8bf4\uff0c\u5982\u679c\u60a8\u5728\u89c2\u770b\u89c6\u9891\u5e76\u5c1d\u8bd5\u5b9e\u9645\u64cd\u4f5c\u65f6\u9047\u5230\u4e86\u56f0\u96be\uff0c\u5e0c\u671b\u60a8\u80fd\u53c2\u8003\u4e00\u4e0b\u3002<\/p>\n<p>\u5982\u679c\u60a8\u4e4b\u540e\u6709\u60f3\u8981\u201c\u4ed4\u7ec6\u9605\u8bfb\u201d\u6216\u201c\u53cd\u590d\u9605\u8bfb\u201d\u7684\u610f\u613f\uff0c\u53ef\u4ee5\u5c06\u6b64\u6587\u7ae0\u6ce8\u518c\u5230\u201c\u6536\u85cf\u5939\u201d\u3002\u5bf9\u4e8e\u90a3\u4e9b\u6b63\u5728\u9605\u8bfb\u672c\u6587\u7684\u4eba\u6765\u8bf4\uff0c\u5982\u679c\u8fd9\u7bc7\u6587\u7ae0\u5bf9\u4ed6\u4eec\u6709\u6240\u53c2\u8003\uff0c\u60a8\u53ef\u4ee5\u7ed9\u4e88\u201c\u70b9\u8d5e\u201d\u4ee5\u9f13\u52b1\u3002\u8c22\u8c22\u60a8\u7684\u652f\u6301\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u8fd9\u7bc7\u6587\u7ae0\u662f\u5173\u4e8e\u89c2\u770b\u4e86\u4e00\u4e2a\u540d\u4e3a&#8221;Serverless is simple. Do I need [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-44425","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f53\u9a8cCICD - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f53\u9a8ccicd\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f53\u9a8cCICD\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u8fd9\u7bc7\u6587\u7ae0\u662f\u5173\u4e8e\u89c2\u770b\u4e86\u4e00\u4e2a\u540d\u4e3a&#8221;Serverless is simple. Do I need [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f53\u9a8ccicd\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-22T21:24:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T00:31:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d587637434c4406ce0abe\/4-0.png\" \/>\n<meta name=\"author\" content=\"\u97f5, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u97f5, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%93%e9%aa%8ccicd%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%93%e9%aa%8ccicd%e3%80%82\/\",\"name\":\"\u4f53\u9a8cCICD - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-05-22T21:24:34+00:00\",\"dateModified\":\"2024-04-29T00:31:50+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%93%e9%aa%8ccicd%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%93%e9%aa%8ccicd%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%93%e9%aa%8ccicd%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f53\u9a8cCICD\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e\",\"name\":\"\u97f5, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g\",\"caption\":\"\u97f5, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%93%e9%aa%8ccicd%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f53\u9a8cCICD - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f53\u9a8ccicd\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f53\u9a8cCICD","og_description":"\u9996\u5148 \u8fd9\u7bc7\u6587\u7ae0\u662f\u5173\u4e8e\u89c2\u770b\u4e86\u4e00\u4e2a\u540d\u4e3a&#8221;Serverless is simple. Do I need [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f53\u9a8ccicd\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-05-22T21:24:34+00:00","article_modified_time":"2024-04-29T00:31:50+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d587637434c4406ce0abe\/4-0.png"}],"author":"\u97f5, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u97f5, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%93%e9%aa%8ccicd%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%93%e9%aa%8ccicd%e3%80%82\/","name":"\u4f53\u9a8cCICD - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-05-22T21:24:34+00:00","dateModified":"2024-04-29T00:31:50+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%93%e9%aa%8ccicd%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%93%e9%aa%8ccicd%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%93%e9%aa%8ccicd%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f53\u9a8cCICD"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/6530331a63adef3b3443a1fab53a0e6e","name":"\u97f5, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429ccb39b3fff5188bc17986222cfb0936cbadb8cc933cff04ab5ca01bd30a08?s=96&d=mm&r=g","caption":"\u97f5, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunke\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%93%e9%aa%8ccicd%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/44425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=44425"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/44425\/revisions"}],"predecessor-version":[{"id":84173,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/44425\/revisions\/84173"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=44425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=44425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=44425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}