Document the use of scope with GHA caching

Resolves #706

Signed-off-by: Yanir Seroussi <yanir.seroussi@gmail.com>
pull/709/head
Yanir Seroussi 3 years ago
parent 6e95f19fb8
commit 253eccfb68

@ -109,6 +109,10 @@ exclusively used in a GitHub Action workflow as the `url` (`$ACTIONS_CACHE_URL`)
and `token` (`$ACTIONS_RUNTIME_TOKEN`) attributes are populated when a workflow
is started.
When building multiple images, add `scope=<scope_name>` to `cache-from` and `cache-to` to avoid
overwriting the cache index. See the docs for
[GitHub Actions cache](https://docs.docker.com/build/building/cache/backends/gha/#scope).
```yaml
name: ci

Loading…
Cancel
Save