Skip to content

Commit

Permalink
chore: max cache to arg
Browse files Browse the repository at this point in the history
  • Loading branch information
rcwbr authored Nov 12, 2024
1 parent fff0432 commit b062f8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devcontainer-cache-build-initialize
Original file line number Diff line number Diff line change
Expand Up @@ -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}}"
Expand Down

0 comments on commit b062f8b

Please sign in to comment.