Cloud builders

Cloud builders are containers with common languages and tools installed in them. You can use the builders to execute your tasks by including them in build steps.

This page describes the types of builders available to you.

Supported builder images provided by Cloud Build

Cloud Build provides and maintains pre-built images of builders that you can reference in your build steps to execute your tasks. You can find these pre-built images at:

The source code for these builders is available in the cloud builders GitHub repository.

The following table lists some examples of supported builder images:

Builder Name Example
bazel bazel example
docker docker example
git git example
go go example
gcloud gcloud example
gradle gradle example
maven maven example
kubectl kubectl example
npm npm example
The complete list of supported builders for Cloud Build.

Community-contributed builders

The Cloud Build developer community provides open-source builders that you can use to execute your tasks. Pre-built images are not available for these builders; to use these builders, download the source code from the cloud builders community GitHub repository and then build the image.

The following table lists some examples of community-contributed builders:

Builder Description
docker-compose Runs integration tests on docker images.
remote-builder Executes your build step on a configurable Compute Engine VM.
packer Automates the creation of machine images using Packer
helm Manages Kubernetes packages using Helm.
The complete list of community-contributed builders for Cloud Build.

For information on contributing a builder, see the cloud builders community GitHub page.

Publicly available container images

Cloud Build allows you to use any publicly available container image in a build step.

For example, the following code snippet shows how to add a build step using the ubuntu image from Docker Hub:

- name: 'ubuntu'

Here's another example code snippet that adds a build step using the container image for Black Duck open source scanner for Cloud Build from Google Cloud Console Launcher:

- name:

Writing your own custom builder

You can create your own custom builder for use in your builds. A custom builder is a container image that the Cloud Build pulls and runs with your source. Your custom builder can execute any script or binary inside the container; as such it can do anything a container can do. For instructions on creating a custom builder, see Creating custom build steps.

What's next