Skip to content

Commit bca25dd

Browse files
rajeswari1301BryceStevenWilley
authored andcommitted
Added layer caching
Follow up to #14. Added inline registry caching to the build step. With this, docker uses reused unchanged layers from the last pushed image, so only the changed parts gets rebuilt again.
1 parent 5c2f6b7 commit bca25dd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/push-to-ghcr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,5 @@ jobs:
4949
push: ${{ startsWith(github.ref, 'refs/tags/') }} # only push on tags
5050
tags: ${{ steps.meta.outputs.tags }}
5151
labels: ${{ steps.meta.outputs.labels }}
52+
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}:latest
53+
cache-to: type=inline

0 commit comments

Comments
 (0)