Skip to content

Commit

Permalink
fix: cache-to was missing the repo url and was only tag (#210)
Browse files Browse the repository at this point in the history
Co-authored-by: Greg O'Grady <gregory.ogrady@voiceflow.com>
  • Loading branch information
theProf and Greg O'Grady committed Apr 4, 2024
1 parent 5d73357 commit 2045bf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/track/update_track.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ if [[ $IMAGE_EXISTS == "false" || "$CIRCLE_BRANCH" == "master" || "$CIRCLE_BRANC
fi

if [[ "${ENABLE_CACHE_TO-}" -eq 1 && "${CACHE_BRANCH_NAME}" == "master" ]] ; then
CACHE_TO_ARG=(--cache-to "mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=cache-${CACHE_BRANCH_NAME-}")
CACHE_TO_ARG=(--cache-to "mode=max,image-manifest=true,oci-mediatypes=true,type=registry,ref=${IMAGE_REPO-}:cache-${CACHE_BRANCH_NAME-}")
fi

BUILD_ARGS+=( "${CACHE_FROM_ARG[@]}" )
Expand Down

0 comments on commit 2045bf3

Please sign in to comment.