From 53df1548adf7aee68138ffbd51666f35becd5fa7 Mon Sep 17 00:00:00 2001 From: David Mejia Date: Tue, 27 Aug 2024 14:46:09 -0400 Subject: [PATCH] reduce caching --- scripts/common.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/common.sh b/scripts/common.sh index af247c418..794ebbaf1 100755 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -102,9 +102,9 @@ update_docker_image() { CCDL_STAGING_IMAGE="ccdlstaging/dr_$IMAGE_NAME" DOCKERHUB_IMAGE="$DOCKERHUB_REPO/dr_$IMAGE_NAME" - CACHE_FROM_CCDL_STAGING_LATEST="type=registry,ref=${CCDL_STAGING_IMAGE}_cache:latest" + # CACHE_FROM_CCDL_STAGING_LATEST="type=registry,ref=${CCDL_STAGING_IMAGE}_cache:latest" CACHE_FROM_CCDL_STAGING_VERSION="type=registry,ref=${CCDL_STAGING_IMAGE}_cache:$SYSTEM_VERSION" - CACHE_FROM_LATEST="type=registry,ref=${DOCKERHUB_IMAGE}_cache:latest" + # CACHE_FROM_LATEST="type=registry,ref=${DOCKERHUB_IMAGE}_cache:latest" CACHE_FROM_VERSION="type=registry,ref=${DOCKERHUB_IMAGE}_cache:$SYSTEM_VERSION" CACHE_TO_LATEST="type=registry,ref=${DOCKERHUB_IMAGE}_cache:latest,mode=max" CACHE_TO_VERSION="type=registry,ref=${DOCKERHUB_IMAGE}_cache:$SYSTEM_VERSION,mode=max" @@ -112,12 +112,12 @@ update_docker_image() { set_up_docker_builder + # --cache-from "$CACHE_FROM_CCDL_STAGING_LATEST" \ + # --cache-from "$CACHE_FROM_LATEST" \ docker buildx build \ --build-arg DOCKERHUB_REPO="$DOCKERHUB_REPO" \ --build-arg SYSTEM_VERSION="$SYSTEM_VERSION" \ - --cache-from "$CACHE_FROM_CCDL_STAGING_LATEST" \ --cache-from "$CACHE_FROM_CCDL_STAGING_VERSION" \ - --cache-from "$CACHE_FROM_LATEST" \ --cache-from "$CACHE_FROM_VERSION" \ --cache-to "$CACHE_TO_LATEST" \ --cache-to "$CACHE_TO_VERSION" \