File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -195,14 +195,18 @@ sub_build() {
195195 if [ " $branch " = " main" ] || [ " $branch " = " master" ]; then
196196 buildx_cmd+=( \
197197 --cache-from type=registry,ref=" $cache_ref_main " \
198- --cache-to type=registry,ref=" $cache_ref_main " ,mode=max )
198+ --cache-to type=registry,ref=" $cache_ref_main " ,mode=max \
199+ --no-cache-filter system-build
200+ --no-cache-filter system-final )
199201 elif [[ " $branch " =~ ^dependabot/ ]]; then
200202 buildx_cmd+=( --cache-from type=registry,ref=" $cache_ref_main " )
201203 else
202204 buildx_cmd+=( \
203205 --cache-from type=registry,ref=" $cache_ref_main " \
204206 --cache-from type=registry,ref=" $cache_ref_branch " \
205- --cache-to type=registry,ref=" $cache_ref_branch " ,mode=max )
207+ --cache-to type=registry,ref=" $cache_ref_branch " ,mode=max \
208+ --no-cache-filter system-build
209+ --no-cache-filter system-final )
206210 fi
207211
208212 buildx_cmd+=( --push --progress=plain )
You can’t perform that action at this time.
0 commit comments