1
0
Fork 0
mirror of https://github.com/docker/build-push-action.git synced 2025-03-31 20:20:07 +02:00

Document the use of scope with GHA caching

Resolves 

Signed-off-by: Yanir Seroussi <yanir.seroussi@gmail.com>
This commit is contained in:
Yanir Seroussi 2022-10-25 13:45:49 +10:00
parent 6e95f19fb8
commit 253eccfb68

View file

@ -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