From 707bfd62e721a2845ee05b87cb5d3c611bda2276 Mon Sep 17 00:00:00 2001 From: Nawaz Dhandala Date: Fri, 6 Mar 2026 19:13:23 +0000 Subject: [PATCH] feat: enhance docker build caching with cache-from and cache-to options --- Scripts/GHA/build_docker_images.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Scripts/GHA/build_docker_images.sh b/Scripts/GHA/build_docker_images.sh index 75d618a03e..9a9611ff53 100644 --- a/Scripts/GHA/build_docker_images.sh +++ b/Scripts/GHA/build_docker_images.sh @@ -98,10 +98,11 @@ build_variant() { local -a args args=( docker buildx build - --no-cache --file "$DOCKERFILE" --platform "$PLATFORMS" --push + --cache-from "type=gha,scope=${IMAGE}-${variant_prefix:-community}" + --cache-to "type=gha,mode=max,scope=${IMAGE}-${variant_prefix:-community}" ) args+=(