We use cookies to understand how people use Depot.
Integrations

CircleCI

Authentication

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

Project token

A project access token can be injected into your CircleCI workflow 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 CircleCI workflow 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

To build a Docker image from CircleCI, you will need to set the DEPOT_TOKEN environment variable in your project settings. This can be done through the UI for your project.

version: 2
jobs:
  build:
    machine: true
    steps:
      - checkout
      - run: |
          curl -L https://depot.dev/install-cli.sh | sh
      - run: depot build --push --tag repo/image:tag .