You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Building from the current repository automatically uses the [GitHub Token](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token)
@@ -170,8 +165,6 @@ jobs:
170
165
* [Push to multi-registries](docs/advanced/push-multi-registries.md)
171
166
* [Copy between registries](docs/advanced/copy-between-registries.md)
Copy file name to clipboardExpand all lines: docs/advanced/cache.md
+102-9Lines changed: 102 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,18 @@
1
1
# Cache
2
2
3
+
*[Inline cache](#inline-cache)
3
4
*[Registry cache](#registry-cache)
4
5
*[GitHub cache](#github-cache)
6
+
*[Cache backend API](#cache-backend-api)
7
+
*[Local cache](#local-cache)
5
8
6
-
> More info about buildx cache: https://github.com/docker/buildx/blob/master/docs/reference/buildx_build.md#cache-from
9
+
> More info about cache on [BuildKit](https://github.com/moby/buildkit#export-cache) and [Buildx](https://github.com/docker/buildx/blob/master/docs/reference/buildx_build.md#cache-from) repositories.
7
10
8
-
## Registry cache
11
+
## Inline cache
9
12
10
-
You can import/export cache from a cache manifest or (special) image configuration on the registry.
13
+
In most case you want to use the [`type=inline` cache exporter](https://github.com/moby/buildkit#inline-push-image-and-cache-together).
14
+
However, note that the `inline` cache exporter only supports `min` cache mode. To enable `max` cache mode, push the
15
+
image and the cache separately by using the `registry` cache exporter as shown in the [next example](#registry-cache).
11
16
12
17
```yaml
13
18
name: ci
@@ -44,16 +49,104 @@ jobs:
44
49
cache-to: type=inline
45
50
```
46
51
52
+
## Registry cache
53
+
54
+
You can import/export cache from a cache manifest or (special) image configuration on the registry with the
0 commit comments