We use cookies to understand how people use Depot.
Integrations

Google Cloud Build

Authentication

For Google Cloud Build you can use project or user access tokens for authenticating your build with Depot.

Project token

A project access token can be injected into the Cloud Build environment for depot CLI authentication. This is a token that is tied to a specific project in your organization and not a user.

User access token

It is also possible to generate a user access token that can be injected into the Cloud Build environment for depot CLI authentication. This is a token that is tied to a specific user and not a project. Therefore, it can be used to build all projects across all organizations that the user has access to.

Configuration

We publish a container image of the depot CLI that you can use to run Docker builds from your existing Cloud Build config file.

- id: Build with Depot
  name: ghcr.io/depot/cli:latest
  args:
    - build
    - --push
    - --tag
    - repo/image:tag
    - .
  secretEnv: ['DEPOT_TOKEN']