Cloud Build 是一项可在 Google Cloud基础设施上执行构建的服务。Cloud Build 可以从 Cloud Storage、GitLab、GitHub 或 Bitbucket 导入源代码,根据您的规范执行构建,以及生成诸如 Docker 容器或 Java 归档之类的工件。了解详情
Cloud Build 将构建作为一系列构建步骤执行,其中的每个构建步骤都在 Docker 容器中运行。无论环境如何,构建步骤都可以执行任何能在容器中完成的操作。如需执行任务,您可以使用 Cloud Build 提供的受支持的构建步骤,也可以编写自己的构建步骤。
获享 $300 免费赠金开始概念验证
-
体验 Gemini 2.0 Flash Thinking
-
免费使用热门产品(包括 AI API 和 BigQuery)的每月用量
-
不会自动收费,无需承诺
继续探索 20 多种提供“始终免费”用量的产品
使用适用于常见应用场景(包括 AI API、虚拟机、数据仓库等)的 20 多种免费产品。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-18。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-18。"],[[["\u003cp\u003eCloud Build is a Google Cloud service that executes builds, importing source code from various repositories like Cloud Storage, GitLab, GitHub, or Bitbucket.\u003c/p\u003e\n"],["\u003cp\u003eBuilds in Cloud Build are executed as a series of steps, each running in a Docker container, allowing for versatile task execution.\u003c/p\u003e\n"],["\u003cp\u003eUsers can utilize pre-configured build steps provided by Cloud Build or create their own custom steps to suit their specific requirements.\u003c/p\u003e\n"],["\u003cp\u003eCloud Build provides numerous guides on key actions, such as building and pushing Docker images, deploying applications to Cloud Run, and automating builds.\u003c/p\u003e\n"],["\u003cp\u003eCloud Build includes resources for pricing, release notes, quotas, supported locations, billing questions, and getting support.\u003c/p\u003e\n"]]],[],null,["# Cloud Build documentation\n=========================\n\n[Read product documentation](/build/docs/overview)\nCloud Build is a service that executes your builds on Google Cloud\ninfrastructure. Cloud Build can import source code from\nCloud Storage, GitLab, GitHub, or Bitbucket, execute a\nbuild to your specifications, and produce artifacts such as Docker containers or\nJava archives. [Learn more](/build/docs/overview)\n\n\nCloud Build executes your build as a series of *build steps* , where\neach build step is run in a Docker container. A build step can do anything that\ncan be done from a container irrespective of the environment. To perform your\ntasks, you can either\n[use the supported build steps](/build/docs/configuring-builds/build-test-deploy-artifacts)\nprovided by Cloud Build or [write your own build steps](/build/docs/create-custom-build-steps).\n[Get started for free](https://console.cloud.google.com/freetrial) \n\n#### Start your proof of concept with $300 in free credit\n\n- Get access to Gemini 2.0 Flash Thinking\n- Free monthly usage of popular products, including AI APIs and BigQuery\n- No automatic charges, no commitment \n[View free product offers](/free/docs/free-cloud-features#free-tier) \n\n#### Keep exploring with 20+ always-free products\n\n\nAccess 20+ free products for common use cases, including AI APIs, VMs, data warehouses,\nand more.\n\nDocumentation resources\n-----------------------\n\nFind quickstarts and guides, review key references, and get help with common issues. \nformat_list_numbered\n\n### Guides\n\n-\n\n [Quickstart: Build and push a Docker image with Cloud Build](/build/docs/build-push-docker-image)\n\n-\n\n [Quickstart: Deploy a containerized application to Cloud Run](/build/docs/deploy-containerized-application-cloud-run)\n\n-\n\n [Quickstart: Automate builds by using Cloud Build](/build/docs/automate-builds)\n\n-\n\n [Create a basic build configuration file](/build/docs/configuring-builds/create-basic-configuration)\n\n-\n\n [Create and manage build triggers](/build/docs/automating-builds/create-manage-triggers)\n\n-\n\n [Build container images](/build/docs/building/build-containers)\n\n-\n\n [Build Node.js applications](/build/docs/building/build-nodejs)\n\n-\n\n [Build Java applications](/build/docs/building/build-java)\n\n-\n\n [Deploy to Cloud Run](/build/docs/deploying-builds/deploy-cloud-run)\n\n-\n\n [Deploy to GKE](/build/docs/deploying-builds/deploy-gke)\n\nfind_in_page\n\n### Reference\n\n-\n\n [REST API](/build/docs/api/reference/rest)\n\ninfo\n\n### Resources\n\n-\n\n [Pricing](/build/pricing)\n\n-\n\n [Release notes](/build/docs/release-notes)\n\n-\n\n [Quotas and limits](/build/quotas)\n\n-\n\n [Locations](/build/docs/locations)\n\n-\n\n [Billing questions](/build/docs/billing-questions)\n\n-\n\n [Getting support](/build/docs/getting-support)\n\nRelated videos\n--------------"]]