diff --git a/devcontainer-cache-build-initialize b/devcontainer-cache-build-initialize index 1918c87..ef69cbe 100644 --- a/devcontainer-cache-build-initialize +++ b/devcontainer-cache-build-initialize @@ -74,11 +74,11 @@ DEVCONTAINER_CACHE_FROMS="${DEVCONTAINER_CACHE_FROMS:=${DEFAULT_DEVCONTAINER_CAC if [[ "${CI}" != "true" ]]; then DEFAULT_DEVCONTAINER_CACHE_TOS=" \ - type=registry,rewrite-timestamp=true,ref=${DEVCONTAINER_IMAGE_REF}-cache:local-${GIT_BRANCH_SANITIZED} \ + type=registry,rewrite-timestamp=true,mode=max,ref=${DEVCONTAINER_IMAGE_REF}-cache:local-${GIT_BRANCH_SANITIZED} \ " else DEFAULT_DEVCONTAINER_CACHE_TOS=" \ - type=registry,rewrite-timestamp=true,ref=${DEVCONTAINER_IMAGE_REF}-cache:${GIT_BRANCH_SANITIZED} \ + type=registry,rewrite-timestamp=true,mode=max,ref=${DEVCONTAINER_IMAGE_REF}-cache:${GIT_BRANCH_SANITIZED} \ " fi DEVCONTAINER_CACHE_TOS="${DEVCONTAINER_CACHE_TOS:=${DEFAULT_DEVCONTAINER_CACHE_TOS}}"