Skip to content

Commit

Permalink
reduce caching
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsmejia committed Aug 27, 2024
1 parent a04f415 commit 53df154
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,22 +102,22 @@ 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"


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" \
Expand Down

0 comments on commit 53df154

Please sign in to comment.