diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index a820687..66760a0 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -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 }}