Skip to content

Commit

Permalink
feat: any branch can push its cache (#274)
Browse files Browse the repository at this point in the history
Co-authored-by: Greg O'Grady <[email protected]>
  • Loading branch information
theProf and Greg O'Grady authored Jul 25, 2024
1 parent fa1352a commit 15ce02c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/scripts/track/update_track.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -171,4 +171,3 @@ if (( UPDATE_TRACK_FILE )); then
else
echo "Skipping track update"
fi

0 comments on commit 15ce02c

Please sign in to comment.