Skip to content

Commit

Permalink
Merge pull request #19525 from dvdksn/gha-cache-timeout
Browse files Browse the repository at this point in the history
build(cache): gha backend timeout opt
  • Loading branch information
dvdksn committed Feb 28, 2024
2 parents 2ec9558 + 68819e4 commit fb58333
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions content/build/cache/backends/gha.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ $ docker buildx build --push -t <registry>/<image> \
The following table describes the available CSV parameters that you can pass to
`--cache-to` and `--cache-from`.

| Name | Option | Type | Default | Description |
|----------------|-------------------------|-------------|--------------------------|-----------------------------------------------------|
| `url` | `cache-to`,`cache-from` | String | `$ACTIONS_CACHE_URL` | Cache server URL, see [authentication][1]. |
| `token` | `cache-to`,`cache-from` | String | `$ACTIONS_RUNTIME_TOKEN` | Access token, see [authentication][1]. |
| `scope` | `cache-to`,`cache-from` | String | `buildkit` | Which scope cache object belongs to, see [scope][2] |
| `mode` | `cache-to` | `min`,`max` | `min` | Cache layers to export, see [cache mode][3]. |
| `ignore-error` | `cache-to` | Boolean | `false` | Ignore errors caused by failed cache exports. |
| Name | Option | Type | Default | Description |
| -------------- | ----------------------- | ----------- | ------------------------ | -------------------------------------------------------------------- |
| `url` | `cache-to`,`cache-from` | String | `$ACTIONS_CACHE_URL` | Cache server URL, see [authentication][1]. |
| `token` | `cache-to`,`cache-from` | String | `$ACTIONS_RUNTIME_TOKEN` | Access token, see [authentication][1]. |
| `scope` | `cache-to`,`cache-from` | String | `buildkit` | Which scope cache object belongs to, see [scope][2] |
| `mode` | `cache-to` | `min`,`max` | `min` | Cache layers to export, see [cache mode][3]. |
| `ignore-error` | `cache-to` | Boolean | `false` | Ignore errors caused by failed cache exports. |
| `timeout` | `cache-to`,`cache-from` | String | `10m` | Max duration for importing or exporting cache before it's timed out. |

[1]: #authentication
[2]: #scope
Expand Down

0 comments on commit fb58333

Please sign in to comment.