For Google Cloud Build you can use project or user access tokens for authenticating your build with Depot.
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.
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.
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']