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 #706 Signed-off-by: Yanir Seroussi <yanir.seroussi@gmail.com>
This commit is contained in:
parent
6e95f19fb8
commit
253eccfb68
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue