Correct documentation on gha scopes

I believe the documentation is misleading in saying that specifying a scope in a gha cache declaration will `ensure each branch gets its own cache`. I believe this should say that each build or each image will get its own cache.

Signed-off-by: Mark Hildreth <mark.hildreth@gravityclimate.com>
pull/1397/head
Mark Hildreth 2 years ago committed by Mark Hildreth
parent d1b454232d
commit 35e7172b89

@ -64,7 +64,7 @@ leaving only the final cache.
To preserve the cache for multiple builds on the same branch, you can manually To preserve the cache for multiple builds on the same branch, you can manually
specify a cache scope name using the `scope` parameter. In the following specify a cache scope name using the `scope` parameter. In the following
example, the cache is set to a combination of the branch name and the image example, the cache is set to a combination of the branch name and the image
name, to ensure each branch gets its own cache): name, to ensure each image gets its own cache):
```console ```console
$ docker buildx build --push -t <registry>/<image> \ $ docker buildx build --push -t <registry>/<image> \

Loading…
Cancel
Save