mirror of
https://github.com/ditkrg/build-image-workflow.git
synced 2026-01-22 22:36:43 +00:00
Use inline cache
This commit is contained in:
parent
936d4772b2
commit
3ce6227dfc
7
.github/workflows/workflow.yaml
vendored
7
.github/workflows/workflow.yaml
vendored
@ -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 }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user