mirror of
https://github.com/ditkrg/build-image-workflow.git
synced 2026-01-22 20:36:46 +00:00
Refactor caching mechanism in action.yml
This update modifies the caching strategy by removing the previous cache type and introducing a new registry-based cache for builds. This change enhances the efficiency of the caching process during CI/CD workflows.
This commit is contained in:
parent
6bc379401f
commit
ce1914c7e6
@ -53,9 +53,6 @@ runs:
|
||||
images: ${{ inputs.registry }}/${{ inputs.image }}
|
||||
flavor: latest=false
|
||||
tags: |
|
||||
# Cache
|
||||
type=raw,value=${{ github.ref_name }}-cache
|
||||
|
||||
# Pull Request
|
||||
type=ref,event=pr
|
||||
type=ref,event=pr,suffix=-{{sha}},priority=8887 # 2
|
||||
@ -83,8 +80,8 @@ runs:
|
||||
push: ${{ inputs.push }}
|
||||
file: ${{ inputs.file }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
cache-to: type=inline
|
||||
cache-from: type=registry,ref=${{ inputs.registry }}/${{ inputs.image }}:${{ github.ref_name }}-cache
|
||||
cache-to: type=registry,ref=${{ inputs.registry }}/${{ inputs.image }}:buildcache,mode=max
|
||||
cache-from: type=registry,ref=${{ inputs.registry }}/${{ inputs.image }}:buildcache
|
||||
build-args: ${{ inputs.build-args }}
|
||||
secrets: ${{ inputs.build-secrets }}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user