Skip to content

Commit 13aa044

Browse files
committed
Skip caching of the system layers
1 parent 63e7cba commit 13aa044

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

rocksteady

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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 )

0 commit comments

Comments
 (0)