mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-22 00:33:57 +08:00
Cache all non missing layers
This commit is contained in:
parent
6c1be59bbc
commit
6667986807
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ Using [NuGet lock files](https://docs.microsoft.com/nuget/consume-packages/packa
|
|||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
docker build --cache-from my-image -t my-image .
|
||||
docker save my-image > my-image.tar
|
||||
docker save my-image $(docker history -q my-image | awk '!/<missing>/{print}') > my-image.tar
|
||||
mkdir docker-cache
|
||||
split -b 100m my-image.tar docker-cache/x
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue