Skip to content

Commit 22297ae

Browse files
andie787github-actions[bot]
authored andcommitted
Update docs content from https://github.com/depot/app
1 parent 2dfe9b0 commit 22297ae

File tree

13 files changed

+649
-612
lines changed

13 files changed

+649
-612
lines changed

content/cache/integrations/sccache.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,18 @@ DEPOT_TOKEN=your_token depot bake
9090

9191
[Depot GitHub Actions runners](/docs/github-actions/overview) are pre-configured to use Depot Cache with sccache. Each runner launches with a `SCCACHE_WEBDAV_ENDPOINT` environment variable pre-configured with the connection details for Depot Cache.
9292

93-
You don't need additional configuration. Run your sccache builds as normal:
93+
Tell Rust to compile via sccache, and run your sccache builds as normal:
9494

9595
```yaml
9696
jobs:
9797
build:
9898
runs-on: depot-ubuntu-24.04
9999
steps:
100100
- uses: actions/checkout@v4
101-
- run: sccache --start-server && cargo build --release
101+
- uses: mozilla-actions/sccache-action@v0.0.9
102+
- run: cargo build --release
103+
env:
104+
RUSTC_WRAPPER: 'sccache'
102105
```
103106
104107
To disable automatic configuration, turn off **Allow Actions jobs to automatically connect to Depot Cache** in your organization settings page. You can then manually configure sccache as described in the Local workstation section.

content/cache/overview.mdx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@ Supported build tools can be configured to use Depot Cache, so that they store a
2727

2828
This speeds up your builds and tests by orders of magnitude, especially for large codebases, as those builds and tests become incremental. Instead of always having to rebuild from scratch, only the parts of your codebase that have changed are rebuilt, and only affected tests are re-run.
2929

30+
### Cache retention policy
31+
32+
The default cache retention policy is to store the cache entries for 14 days with no limit on total cache size.
33+
34+
Configure the cache retention policy on your organization's [settings page](/orgs/_/settings) to control time based retention and cache size limits.
35+
36+
- Available values for time based retention: 7 days, 14 days (default), 30 days
37+
- Available values for size based retention: 25 GB, 50 GB, 100 GB, 150 GB, 250 GB, 500 GB, No limit (default)
38+
39+
**Note:** Retention policy settings don't apply to Docker layer cache entries (shown as type `docker` in the [Cache Explorer](/orgs/_/cache)). To manage Docker cache retention, set cache policy per [project](/orgs/_/projects) in project Settings.
40+
3041
## Where can I use Depot Cache?
3142

3243
Depot Cache is accessible anywhere you run your builds, in local development or from any CI/CD system. Additionally, all supported tools are pre-configured to use Depot Cache when using [Depot GitHub Actions Runners](/docs/github-actions/overview).
@@ -35,8 +46,4 @@ This means that build artifacts are shared between different members of your tea
3546

3647
## Pricing
3748

38-
Depot Cache is available on all of our pricing plans. Each plan includes a block of cache storage. Each additional GB over the included amount is billed at **$0.20/GB/month**. See our [pricing page](/pricing) for more details.
39-
40-
## Cache Retention
41-
42-
Depot Cache retains build artifacts for a configurable amount of time. By default, artifacts are retained for 14 days. You can configure this retention period in the Depot Cache settings.
49+
Depot Cache is available on all of our pricing plans. Each plan includes a block of cache storage. Each additional GB over the included amount is billed at $0.20 per GB of usage. We calculate usage by taking a snapshot every hour and then averaging out those snapshots over the month. For more information about plans and included usage, see the [pricing page](/pricing).

content/cli/authentication.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ To add a trust relationship for GitHub Actions, you can go through the following
4949
5. Enter a GitHub User or Organization for the trust relationship
5050
6. Enter the name of the GitHub repository that will build images via Depot (Note: this is the repository name, not the full URL and it must match the repository name exactly)
5151
7. Click Add trust relationship
52-
8. Ensure your workflow has permission to use this OIDC trust relationship by setting the permission `id-token: write`.
52+
8. In your workflow file, add a `permissions` block to your job with `id-token: write` and `contents: read`.
5353

5454
### Adding a trust relationship for CircleCI
5555

content/cli/reference.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Below is a reference to the `depot` CLI, including all config, commands, flags,
88

99
## Specifying a Depot project
1010

11-
Some commands need to know which [project](/docs/core-concepts#projects) to route the build to.
11+
Some commands need to know which [project](/docs/container-builds/overview#projects) to route the build to.
1212

1313
For interactive terminals calling [`build`](#depot-build) or [`bake`](#depot-bake), if you don't specify a project, you will be prompted to choose a project when using an interactive prompt and given the option to save that project for future use in a `depot.json` file.
1414

0 commit comments

Comments
 (0)