Skip to content

Commit 5059cd9

Browse files
Merge pull request #167 from depot/docs-sync-updates
Update content from depot/app
2 parents b910567 + 1f491a3 commit 5059cd9

8 files changed

Lines changed: 151 additions & 63 deletions

File tree

content/ci/how-to-guides/custom-images.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@ ogTitle: How to build and use custom images in Depot CI
44
description: Learn how to snapshot a Depot CI sandbox that includes your tools and dependencies and then reuse it as a custom image for your jobs.
55
---
66

7+
import {NoteCallout} from '~/components/blog/NoteCallout'
8+
79
You can build a custom image in Depot CI using a job that runs only your setup steps on the Depot base image. After your setup steps complete, the snapshot action captures the state of the sandbox environment and pushes it to the Depot registry as a reusable image. Any job can then use that snapshot as its starting image, skipping the setup steps entirely.
810

11+
<NoteCallout fullWidth>
12+
The snapshot action can only be used in workflows running on Depot CI. It is not compatible with GitHub Actions or
13+
other CI providers.
14+
</NoteCallout>
15+
916
## Snapshot a sandbox to build a custom image
1017

1118
Create a job that runs on a standard Depot sandbox and installs the tools and dependencies you want to bake in. This is a separate workflow that only creates your custom image and pushes it to the Depot Registry. You'll need to run this workflow initially to create the image and then only when dependencies change.

content/ci/how-to-guides/manage-secrets-and-variables.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ You can't view secret values in the dashboard after you create them. Variable va
1616

1717
Names must be non-empty. Repository-scoped names can't contain a forward slash (`/`).
1818

19+
### Import secrets and variables from GitHub
20+
21+
If you're migrating from GitHub Actions, you can import your existing GitHub secrets and variables into Depot CI with a single command:
22+
23+
```bash
24+
depot ci migrate secrets-and-vars
25+
```
26+
27+
This creates a one-shot GitHub Actions workflow that reads secrets and variables from your GitHub repository and imports them into Depot CI. See [`depot ci migrate secrets-and-vars`](/docs/cli/reference/depot-ci#depot-ci-migrate-secrets-and-vars) in the CLI reference for details.
28+
1929
You can also manage secrets and variables with the Depot CLI. See the [examples](#manage-secrets-and-variables-with-the-cli), or the [full CLI reference](/docs/cli/reference/depot-ci) for all flags and options.
2030

2131
## Add secrets to Depot CI using the dashboard

content/ci/overview.mdx

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Depot CI is a programmable CI system for engineers and agents. Workflows in Depo
1313

1414
Switching to Depot CI starts with one command: `depot ci migrate`.
1515

16-
The interactive wizard discovers your GitHub Actions workflows, analyzes them for compatibility, copies the workflows and any local actions to a `.depot/` directory, and prompts you to set values for secrets or variables they reference.
16+
The interactive wizard helps you install our GitHub App, discovers your GitHub Actions workflows, analyzes them for compatibility, and copies selected workflows and any local actions to a `.depot/` directory. Secrets and variables can then be automatically imported from GitHub in a separate step with `depot ci migrate secrets-and-vars`.
1717

1818
Your original `.github/` workflows continue running on GitHub in parallel until you're ready to switch over to Depot CI completely. For a step-by-step walkthrough, see the [quickstart](/docs/ci/quickstart).
1919

@@ -137,11 +137,11 @@ For the full compatibility matrix, see [Depot CI compatibility with GitHub Actio
137137

138138
We track and bill Depot CI sandbox usage by the second, with no one-minute minimum per run. We calculate total seconds used at the end of the billing period.
139139

140-
| | Developer plan | Startup plan | Business plan |
141-
| -------------------- | ------------------------------------------ | ------------------------------------------- | ------------- |
142-
| **Plan cost** | $20/month | $200/month | Custom |
143-
| **Depot CI minutes** | 2,000 min/month<br/>+ $0.0001/second after | 20,000 min/month<br/>+ $0.0001/second after | Custom |
144-
| **Cache** | 25 GB included<br/>+ $0.20/GB/month after | 250 GB included<br/>+ $0.20/GB/month after | Custom |
140+
| | Developer plan | Startup plan | Business plan |
141+
| -------------------- | --------------------------------------------------- | ---------------------------------------------------- | ------------- |
142+
| **Plan cost** | $20/month | $200/month | Custom |
143+
| **Depot CI minutes** | 2,000 included min/month<br/>+ $0.0001/second after | 20,000 included min/month<br/>+ $0.0001/second after | Custom |
144+
| **Cache** | 25 GB included<br/>+ $0.20/GB/month after | 250 GB included<br/>+ $0.20/GB/month after | Custom |
145145

146146
<DocsCTA buttonId="ci-docs-cta">
147147
<a href="/sign-up" className="text-radix-grass12">
@@ -151,17 +151,19 @@ We track and bill Depot CI sandbox usage by the second, with no one-minute minim
151151

152152
Plans also include [container build](/docs/container-builds/overview) minutes and [GitHub Actions runner](/docs/github-actions/overview) minutes. See [Pricing](/pricing) for more about plan features and costs.
153153

154+
Included monthly Depot CI minutes are not a hard cap. Additional usage is billed automatically.
155+
154156
### Depot CI sandbox types
155157

156158
Larger sandboxes consume your included Depot CI minutes faster and cost more per second of wall time.
157159

158-
| Label | CPUs | Memory | Per-second price |
159-
| :---------------------- | :--- | :----- | :--------------- |
160-
| `depot-ubuntu-24.04` | 2 | 8 GB | $0.0001 |
161-
| `depot-ubuntu-24.04-4` | 4 | 16 GB | $0.0002 |
162-
| `depot-ubuntu-24.04-8` | 8 | 32 GB | $0.0004 |
163-
| `depot-ubuntu-24.04-16` | 16 | 64 GB | $0.0008 |
164-
| `depot-ubuntu-24.04-32` | 32 | 128 GB | $0.0016 |
160+
| Label | Sandbox size | CPUs | Memory | Per-second price |
161+
| :---------------------- | :----------- | :--- | :----- | :--------------- |
162+
| `depot-ubuntu-24.04` | `2x8` | 2 | 8 GB | $0.0001 |
163+
| `depot-ubuntu-24.04-4` | `4x16` | 4 | 16 GB | $0.0002 |
164+
| `depot-ubuntu-24.04-8` | `8x32` | 8 | 32 GB | $0.0004 |
165+
| `depot-ubuntu-24.04-16` | `16x64` | 16 | 64 GB | $0.0008 |
166+
| `depot-ubuntu-24.04-32` | `32x128` | 32 | 128 GB | $0.0016 |
165167

166168
## FAQ
167169

content/ci/quickstart.mdx

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,28 @@ From the root of your repository, run:
5252
depot ci migrate
5353
```
5454

55-
The wizard does the following:
55+
The command runs a preflight check, then copies and transforms your workflows:
5656

57-
1. Discovers all workflow files in `.github/workflows/`.
58-
2. Analyzes each workflow for compatibility with Depot CI and shows a summary of any issues.
57+
1. Validates authentication and checks that the [Depot Code Access app](#connect-to-github) is installed with the correct permissions.
58+
2. Discovers all workflow files in `.github/workflows/`.
5959
3. Prompts you to select which workflows to migrate.
60-
4. Creates a `.depot/` directory and copies selected workflows (and any local actions from `.github/actions/`) there.
61-
5. Detects secrets and variables referenced in the selected workflows and prompts you to enter their values.
60+
4. Copies selected workflows to `.depot/workflows/` and any local actions to `.depot/actions/`, applying compatibility fixes and adding inline comments for any changes.
6261

63-
For a full description of flags and non-interactive mode, see [`depot ci migrate`](/docs/cli/reference/depot-ci#depot-ci-migrate) in the Depot CLI reference.
62+
After migration, the command reports any secrets and variables referenced by the migrated workflows. To import them, see [Import secrets and variables](#import-secrets-and-variables) below.
63+
64+
For a full description of flags and subcommands, see [`depot ci migrate`](/docs/cli/reference/depot-ci#depot-ci-migrate) in the Depot CLI reference.
65+
66+
## Import secrets and variables
67+
68+
If your workflows reference GitHub secrets or variables, use `depot ci migrate secrets-and-vars` to import them into Depot CI:
69+
70+
```bash
71+
depot ci migrate secrets-and-vars
72+
```
73+
74+
This creates a one-shot GitHub Actions workflow that reads your existing GitHub secrets and variables and imports them into Depot CI. The command prints a URL where you can monitor the import.
75+
76+
You can also add secrets and variables manually with `depot ci secrets add` and `depot ci vars add`, or from the [Depot CI settings](https://depot.dev/orgs/_/workflows/settings) in the dashboard. See [Manage secrets and variables](/docs/ci/how-to-guides/manage-secrets-and-variables) for details.
6477

6578
## Merge your workflows
6679

content/cli/reference/depot-ci.mdx

Lines changed: 83 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,62 +14,115 @@ Other Depot product CLI references:
1414

1515
## `depot ci migrate`
1616

17-
Automates migrating GitHub Actions workflows to Depot CI. Launches an interactive wizard that discovers workflows in `.github/workflows/`, analyzes them for compatibility, copies selected workflows to `.depot/workflows/`, and prompts you to configure any referenced secrets and variables.
17+
Migrates GitHub Actions workflows to Depot CI. The command runs two phases: it validates your environment with a preflight check, then copies and transforms your selected workflows into `.depot/workflows/`.
1818

1919
```bash
2020
depot ci migrate
2121
```
2222

23-
### What the command does
23+
After migration, the command reports any secrets and variables referenced by the migrated workflows and directs you to [`depot ci migrate secrets-and-vars`](#depot-ci-migrate-secrets-and-vars) for importing them.
24+
25+
Each phase is also available as a standalone subcommand:
26+
27+
- [`depot ci migrate preflight`](#depot-ci-migrate-preflight) — validate authentication and GitHub app access
28+
- [`depot ci migrate workflows`](#depot-ci-migrate-workflows) — copy and transform workflows
29+
- [`depot ci migrate secrets-and-vars`](#depot-ci-migrate-secrets-and-vars) — import GitHub secrets and variables into Depot CI
30+
31+
### Flags
32+
33+
| Flag | Description |
34+
| ----------------- | -------------------------------------------------------------------------------------- |
35+
| `--yes` | Run in non-interactive mode, migrating all discovered workflows automatically |
36+
| `--overwrite` | Overwrite an existing `.depot/` directory without prompting |
37+
| `--org <id>` | Specify a Depot organization ID (required if you belong to more than one organization) |
38+
| `--token <token>` | Depot API token |
39+
40+
---
41+
42+
### `depot ci migrate preflight`
43+
44+
Validates that you are authenticated, detects the GitHub repository from your git remote, and checks that the Depot Code Access GitHub App is installed with the correct permissions and repository access.
45+
46+
```bash
47+
depot ci migrate preflight
48+
```
49+
50+
If the app is not installed or needs updated permissions, the command prints a link to configure it.
51+
52+
#### Flags
53+
54+
| Flag | Description |
55+
| ----------------- | -------------------------------------------------------------------------------------- |
56+
| `--org <id>` | Specify a Depot organization ID (required if you belong to more than one organization) |
57+
| `--token <token>` | Depot API token |
58+
59+
---
60+
61+
### `depot ci migrate workflows`
62+
63+
Copies workflows from `.github/workflows/` into `.depot/workflows/`, applying Depot CI compatibility transformations and inline comments documenting any changes.
64+
65+
```bash
66+
depot ci migrate workflows
67+
```
68+
69+
#### What the command does
2470

2571
1. Discovers all workflow files in `.github/workflows/`.
2672
2. Analyzes each workflow for compatibility with Depot CI.
2773
3. Prompts you to select which workflows to migrate.
28-
4. Creates a `.depot/` directory and copies selected workflows (and any local actions from `.github/actions/`) there.
29-
5. Detects secrets and variables referenced in the selected workflows and prompts you to enter their values.
74+
4. Copies selected workflows to `.depot/workflows/` and any local actions from `.github/actions/` to `.depot/actions/`.
75+
5. Applies compatibility fixes (for example, mapping `ubuntu-latest` to `depot-ubuntu-latest`).
76+
6. Disables jobs that use unsupported features and adds inline comments explaining what changed.
77+
7. Reports any secrets and variables detected in the migrated workflows.
3078

31-
### What gets copied
79+
#### What gets copied
3280

3381
| Source | Destination |
3482
| ---------------------------------- | --------------------------------- |
3583
| `.github/workflows/<selected>.yml` | `.depot/workflows/<selected>.yml` |
3684
| `.github/actions/` | `.depot/actions/` |
3785

38-
### Flags
86+
#### Flags
3987

40-
| Flag | Description |
41-
| --------------------- | --------------------------------------------------------------------------------------------------- |
42-
| `--yes` | Run in non-interactive mode, migrating all discovered workflows automatically |
43-
| `--secret KEY=VALUE` | Pre-supply a secret value; can be repeated for multiple secrets |
44-
| `--var KEY=VALUE` | Pre-supply a variable value; can be repeated for multiple variables |
45-
| `--repo <owner/repo>` | Scope secrets and variables to a specific repository; auto-detected from git remote if not provided |
46-
| `--overwrite` | Overwrite an existing `.depot/` directory without prompting |
47-
| `--org <id>` | Specify a Depot organization ID (required if you belong to more than one organization) |
48-
| `--token <token>` | Depot API token |
88+
| Flag | Description |
89+
| ----------------- | -------------------------------------------------------------------------------------- |
90+
| `--yes` | Run in non-interactive mode, migrating all discovered workflows automatically |
91+
| `--overwrite` | Overwrite an existing `.depot/` directory without prompting |
92+
| `--org <id>` | Specify a Depot organization ID (required if you belong to more than one organization) |
93+
| `--token <token>` | Depot API token |
4994

50-
### Non-interactive mode
95+
#### What gets transformed
5196

52-
Use `--yes` to run the migration without any prompts. Combine it with `--secret` and `--var` to supply values upfront:
97+
The command applies three kinds of changes to migrated workflows, documented with inline comments:
98+
99+
- **`runs-on` labels** are remapped from GitHub runner labels (like `ubuntu-latest`) to their Depot equivalents.
100+
- **Unsupported triggers** (like `release` or `schedule`) are removed from the `on:` block with a comment explaining why.
101+
- **Jobs with unsupported features** are commented out entirely, with a `DISABLED` comment noting the reason.
102+
103+
Each migrated file includes a header comment listing the source workflow and a summary of all changes made. For the full compatibility matrix, see [Compatibility with GitHub Actions](/docs/ci/compatibility).
104+
105+
---
106+
107+
### `depot ci migrate secrets-and-vars`
108+
109+
Creates a one-shot GitHub Actions workflow that reads secrets and variables from your GitHub repository and imports them into Depot CI.
53110

54111
```bash
55-
depot ci migrate --yes \
56-
--secret NPM_TOKEN=npm_abc123 \
57-
--secret DATABASE_URL=postgres://... \
58-
--var SERVICE_NAME=api \
59-
--org my-org-id
112+
depot ci migrate secrets-and-vars
60113
```
61114

62-
If a workflow references a secret or variable that you haven't supplied via flags, the migration completes with a warning. Add missing values later with `depot ci secrets add` or `depot ci vars add`.
63-
64-
### Compatibility analysis
115+
The command pushes a temporary branch to your GitHub repository containing a workflow that runs on GitHub Actions. The workflow reads your existing GitHub secrets and variables and imports them into Depot CI using the Depot CLI.
65116

66-
Before copying any files, the wizard analyzes each workflow and shows a summary of issues:
117+
In interactive mode, you can preview the generated workflow before it is created. After the workflow is triggered, the command prints a URL where you can monitor the import.
67118

68-
- **No issues**: The workflow is fully compatible and safe to migrate.
69-
- **Warnings**: Features are partially supported. The workflow will run but behavior may differ from GitHub Actions.
70-
- **Critical issues**: Features are unsupported. The workflow is unlikely to run correctly in Depot CI today.
119+
#### Flags
71120

72-
For the full compatibility matrix, see [Compatibility with GitHub Actions](/docs/ci/compatibility).
121+
| Flag | Description |
122+
| ----------------- | -------------------------------------------------------------------------------------- |
123+
| `--yes` | Skip preview and confirmation prompts |
124+
| `--org <id>` | Specify a Depot organization ID (required if you belong to more than one organization) |
125+
| `--token <token>` | Depot API token |
73126

74127
---
75128

content/container-builds/overview.mdx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,11 @@ We use the same architecture for [Depot Managed](/docs/managed/overview) builder
266266

267267
Container builds are tracked by the second, with no one-minute minimum per build. We calculate total minutes used at the end of the billing period.
268268

269-
| | Developer plan | Startup plan | Business plan |
270-
| ----------------- | ----------------------------------------- | ------------------------------------------ | ------------- |
271-
| **Plan cost** | $20/month | $200/month | Custom |
272-
| **Build minutes** | 500/month<br/>+ $0.04/minute after | 5,000/month<br/>+ $0.04/minute after | Custom |
273-
| **Cache** | 25 GB included<br/>+ $0.20/GB/month after | 250 GB included<br/>+ $0.20/GB/month after | Custom |
269+
| | Developer plan | Startup plan | Business plan |
270+
| ----------------- | ------------------------------------------- | --------------------------------------------- | ------------- |
271+
| **Plan cost** | $20/month | $200/month | Custom |
272+
| **Build minutes** | 500 included/month<br/>+ $0.04/minute after | 5,000 included/month<br/>+ $0.04/minute after | Custom |
273+
| **Cache** | 25 GB included<br/>+ $0.20/GB/month after | 250 GB included<br/>+ $0.20/GB/month after | Custom |
274274

275275
<DocsCTA buttonId="container-builds-docs-cta">
276276
<a href="/sign-up" className="text-radix-grass12">
@@ -298,7 +298,8 @@ Startup and Business plan customers can configure larger builder instances. Larg
298298

299299
### Additional container build minutes
300300

301-
You can pay for additional container build minutes on a per-minute basis.
301+
Included monthly build minutes are not a hard cap. You can pay for additional container build minutes on a per-minute
302+
basis.
302303

303304
## FAQ
304305

0 commit comments

Comments
 (0)