Skip to content

Commit

Permalink
Writes cache metadata into the image configuration
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
CrazyMax committed Oct 3, 2020
1 parent 5538ea4 commit 9e2936f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,16 +254,12 @@ jobs:
tags: |
localhost:5000/name/app:latest
localhost:5000/name/app:1.0.0
cache-from: type=registry,ref=localhost:5000/name/app:cache
cache-to: type=registry,ref=localhost:5000/name/app:cache
cache-from: type=registry,ref=localhost:5000/name/app
cache-to: type=inline
-
name: Inspect (1)
run: |
docker buildx imagetools inspect localhost:5000/name/app:1.0.0
-
name: Inspect cache (1)
run: |
docker buildx imagetools inspect localhost:5000/name/app:cache
docker buildx imagetools inspect localhost:5000/name/app:latest
-
name: Image digest (1)
run: echo ${{ steps.docker_build.outputs.digest }}
Expand All @@ -284,16 +280,12 @@ jobs:
tags: |
localhost:5000/name/app:latest
localhost:5000/name/app:1.0.0
cache-from: type=registry,ref=localhost:5000/name/app:cache
cache-to: type=registry,ref=localhost:5000/name/app:cache
cache-from: type=registry,ref=localhost:5000/name/app
cache-to: type=inline
-
name: Inspect (2)
run: |
docker buildx imagetools inspect localhost:5000/name/app:1.0.0
-
name: Inspect cache (2)
run: |
docker buildx imagetools inspect localhost:5000/name/app:cache
docker buildx imagetools inspect localhost:5000/name/app:latest
-
name: Image digest (2)
run: echo ${{ steps.docker_build2.outputs.digest }}
Expand Down
4 changes: 2 additions & 2 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ steps:
pull: true
push: true
build-args: arg1=value1,arg2=value2
cache-from: type=registry,ref=myorg/myrepository:cache
cache-to: type=registry,ref=myorg/myrepository:cache
cache-from: type=registry,ref=myorg/myrepository:latest
cache-to: type=inline
tags: myorg/myrepository:latest
```
Expand Down

0 comments on commit 9e2936f

Please sign in to comment.