Cloud Build release channels

This document describes how to control how often your build workers are updated with new versions of the base operating system and Docker. By selecting a release channel, you can achieve a balance between resilient build processes and up-to-date security and functionality.

You can also choose specific worker versions rather than channels.

Available channels

The following are the release channels available:

Channel Update frequency Uses
regular Within four weeks after each version becomes available

The default channel, and the recommended channel for security compliance. Frequent updates require that your CI processes are kept up to date with new versions.

rapid Always the newest version available Get the latest security updates and features as soon as they're available. New base OS and Docker versions can break CI process and have other issues.
stable Once per year, typically in February This channel prioritizes stability over new features, helping your CI process be more resilient. However, there is a higher risk of exposure to vulnerabilities. The underlying Docker versions might not receive patches from Docker.

See Available releases to see what release is in each channel.

Specify a release channel or version

When you choose one of the three release channels, you're choosing how frequently to update both the Docker version and the worker-image operating system. When you choose a release version, you're choosing the specific versions of Docker and Debian for the worker image.

You can specify either the channel or the release version. There are three places where you can specify them:

  • In the private pool

    If you're using a private pool, you can specify either the channel or the release version in the private pool, either by updating the private pool configuration or by selecting a channel or version when you create or update the pool in the Google Cloud console. If you do this, that channel or version is then used for all builds using that pool, and you can't override it in the build config or on the command line.

  • In the build config

    If you're using the default pool, you can specify the channel or version in the build config file. That channel or version is then used for all builds invoked using that build config.

  • On the command line when invoking a build

    When you invoke a build using gcloud builds submit, you can include the --worker-release flag. The value you provide for this flag overrides what you configure in the build config file. You can't use this flag if the build is running in a private pool, because the pool decides which release to use.

private pool

To specify a release version or channel for your private pool:

Update your private pool configuration using the following command:

gcloud builds worker-pools update PRIVATEPOOL_ID \
       --worker-release=CHANNEL_OR_VERSION \
       --region=REGION \
       --project=PROJECT_ID

Replace the following:

PRIVATEPOOL_ID with the ID of the private pool you'll use to run builds using this channel.

CHANNEL_OR_VERSION with the name of the channel you want to use: regular, rapid, or stable, or with a specific version number.

REGION with the region where your private pool is located.

PROJECT_ID with the ID of the project that contains your private pool.

build config

To specify a release version or channel in your build configuration file:

Add the following property, under the options stanza:

steps:
  # ...
options:
  workerRelease: CHANNEL_OR_VERSION

Replace CHANNEL_OR_VERSION with the name of the channel you want to use: regular, rapid, or stable, or with a specific version number.

build invocation

To specify a release channel in your build invocation:

Add the following flag to your gcloud builds submit command:

--worker-release=CHANNEL_OR_VERSION

Replace CHANNEL_OR_VERSION with the name of the channel you want to use: regular, rapid, or stable, or with a specific version number.

Available releases

The following table lists the available worker versions, the channels that support each version, and the underlying versions of Docker and Debian for each:

Release version Channels Supported until Underlying versions
2026.09 rapid, regular, stable 2029-09-30 Docker Engine 29
Debian 13
legacy 2028-03-31 Docker Engine 20.10
Debian 11

What's next

  • Learn more about the build configuration file.
  • Learn more about the private pool configuration file.
  • Learn about about the Cloud Build shared responsibility model.