From 15ce02c1ecd97ecee0fa02cef1fe346363de1821 Mon Sep 17 00:00:00 2001 From: theProf Date: Thu, 25 Jul 2024 17:27:45 +0000 Subject: [PATCH] feat: any branch can push its cache (#274) Co-authored-by: Greg O'Grady --- src/scripts/track/update_track.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/scripts/track/update_track.sh b/src/scripts/track/update_track.sh index ce40e444..f44fafdd 100644 --- a/src/scripts/track/update_track.sh +++ b/src/scripts/track/update_track.sh @@ -116,7 +116,7 @@ if [[ $IMAGE_EXISTS == "false" || "$CIRCLE_BRANCH" == "master" || "$CIRCLE_BRANC CACHE_FROM_ARG+=(--cache-from "${IMAGE_REPO-}:cache-${BRANCH_NAME-}") fi - if [[ "${ENABLE_CACHE_TO-}" -eq 1 && "${BRANCH_NAME}" == "master" ]] ; then + if [[ "${ENABLE_CACHE_TO-}" -eq 1 ]] ; then CACHE_TO_ARG=(--cache-to "mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=${IMAGE_REPO-}:cache-${BRANCH_NAME-}") fi @@ -171,4 +171,3 @@ if (( UPDATE_TRACK_FILE )); then else echo "Skipping track update" fi -