Skip to content

Commit 45aad59

Browse files
committed
Skip caching of the system layers
1 parent 63e7cba commit 45aad59

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rocksteady

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,16 @@ 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 )
199200
elif [[ "$branch" =~ ^dependabot/ ]]; then
200201
buildx_cmd+=( --cache-from type=registry,ref="$cache_ref_main" )
201202
else
202203
buildx_cmd+=( \
203204
--cache-from type=registry,ref="$cache_ref_main" \
204205
--cache-from type=registry,ref="$cache_ref_branch" \
205-
--cache-to type=registry,ref="$cache_ref_branch",mode=max )
206+
--cache-to type=registry,ref="$cache_ref_branch",mode=max \
207+
--no-cache-filter system )
206208
fi
207209

208210
buildx_cmd+=( --push --progress=plain )

0 commit comments

Comments
 (0)