Developing for Cloud Build

Cloud Build enables you to continuously build and test your code and deploy it on any target. You can develop your application in the programming language of your choice and store the source code in any of the popular source code management systems such as GitHub. This page describes the things to know to get started in developing an application to use with Cloud Build.

Supported programming language

Cloud Build allows you to write code in any programming language of your choice. For examples on building and testing applications, see Building Java applications, Building Go applications, Building Python applications, and Building Node.js applications.

Build configuration file

To build your application using Cloud Build, you must provide a build configuration file along with your application source code. The build config file contains instructions for Cloud Build to perform tasks based on your specifications. You can write the build config file in YAML or JSON. For information on the fields and schema of the build config file, see Build config overview. For instructions on creating a simple build config file, see Create a basic build config file.

Supported source code repositories

Cloud Build integrates with a number of repositories such as GitHub, Bitbucket, and Gitlab. You can store your application source code in any of these repositories and use Cloud Build to automate building, testing, and deploying your code. For instructions on connecting to various repositories, see Creating GitHub app triggers, Building hosted repos on Bitbucket server, Building hosted repos on Bitbucket Cloud, and Building hosted repos on Gitlab.

Storing built artifacts

Artifact Registry is a Google Cloud service that enables you to centrally store artifacts and build dependencies. You can use Artifact Registry in conjunction with Cloud Build to store build artifacts. In addition to Artifact Registry, you can store artifacts in other storage systems such as Cloud Storage, Container Registry (Deprecated), and Docker.

Supported deployment platforms

Cloud Build supports deployments to most popular deployment platforms. For instructions on deploying to specific platforms, see Deploying on Cloud Run, Deploying on Google Kubernetes Engine, Deploying on App Engine, and Deploying on Firebase.

What's next

  • Once you have your source code and build config file, learn how to start a build using CLI, API, or build triggers.