From de51c65c47c48bce3b8e0cbc83119e8c3731f1e9 Mon Sep 17 00:00:00 2001 From: Ameer Hamza Date: Wed, 22 Mar 2023 00:33:54 +0800 Subject: [PATCH] Changed cache mode to 'max' --- build_command.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build_command.sh b/build_command.sh index 5e18691..613deaa 100644 --- a/build_command.sh +++ b/build_command.sh @@ -18,7 +18,7 @@ then -t $CI_REGISTRY_IMAGE:$UBUNTU_VER \ --platform $PLATFORMS \ --cache-from type=registry,ref=$CI_REGISTRY_IMAGE/ubuntu-$UBUNTU_VER:cache \ - --cache-to type=registry,ref=$CI_REGISTRY_IMAGE/ubuntu-$UBUNTU_VER:cache \ + --cache-to type=registry,ref=$CI_REGISTRY_IMAGE/ubuntu-$UBUNTU_VER:cache,mode=max \ --push --provenance false else docker buildx build . \ @@ -30,7 +30,7 @@ else -t $CI_REGISTRY_IMAGE:latest \ --platform $PLATFORMS \ --cache-from type=registry,ref=$CI_REGISTRY_IMAGE/ubuntu-$UBUNTU_VER:cache \ - --cache-to type=registry,ref=$CI_REGISTRY_IMAGE/ubuntu-$UBUNTU_VER:cache \ + --cache-to type=registry,ref=$CI_REGISTRY_IMAGE/ubuntu-$UBUNTU_VER:cache,mode=max \ --push --provenance false fi