Use inline cache

This commit is contained in:
Shkar T. Noori 2022-08-18 08:26:07 +00:00
parent 936d4772b2
commit 3ce6227dfc
No known key found for this signature in database
GPG Key ID: E7AD76088FB6FE02

View File

@ -58,6 +58,9 @@ jobs:
images: ${{ inputs.registry }}/${{ inputs.image }}
flavor: latest=false
tags: |
# Cache
type=raw,value={{branch}}-cache
# Branches
type=ref,event=branch
type=ref,event=branch,suffix=-{{sha}},priority=8888 # 2
@ -80,7 +83,7 @@ jobs:
push: true
file: ${{ inputs.file }}
tags: ${{ steps.meta.outputs.tags }}
cache-to: type=registry,ref=${{ inputs.registry }}/${{ inputs.image }}:buildcache,mode=max
cache-from: type=registry,ref=${{ inputs.registry }}/${{ inputs.image }}:buildcache
cache-to: type=inline
cache-from: type=registry,ref=${{ inputs.registry }}/${{ inputs.image }}:${{ github.ref_name }}-cache
build-args: ${{ inputs.build-args }}
secrets: ${{ secrets.build-secrets }}