Skip to content

Commit 0b5702d

Browse files
committed
parameterize caching options
1 parent 280b7ee commit 0b5702d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

action.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ inputs:
3737
description: 'Docker password'
3838
required: false
3939
default: ''
40+
cache-from:
41+
description: "List of external cache sources for buildx (e.g., user/app:cache, type=local,src=path/to/dir)"
42+
required: false
43+
default: type=gha
44+
cache-to:
45+
description: "List of cache export destinations for buildx (e.g., user/app:cache, type=local,dest=path/to/dir)"
46+
required: false
47+
default: type=gha,mode=max
4048
tags:
4149
description: "List of tags (supports https://github.com/docker/metadata-action#tags-input)"
4250
required: false
@@ -110,8 +118,8 @@ runs:
110118
pull: true
111119
push: true
112120
build-args: ${{ inputs.build-args }}
113-
cache-from: type=gha
114-
cache-to: type=gha,mode=max
121+
cache-from: ${{ inputs.cache-from }}
122+
cache-to: ${{ inputs.cache-to }}
115123
tags: ${{ steps.meta.outputs.tags }}
116124
target: ${{ inputs.target }}
117125
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)