Skip to content

Commit

Permalink
hack: fix no-cache-filter on release
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Aug 8, 2024
1 parent f6eb72f commit 799f175
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hack/images
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ done

nocacheFilterFlag=""
if [[ "$RELEASE" = "true" ]] && [[ "$GITHUB_ACTIONS" = "true" ]]; then
nocacheFilterFlag="--no-cache-filter=git,buildkit-export,gobuild-base"
nocacheFilterFlag="--no-cache-filter=buildkit-export,gobuild-base"
fi

buildxCmd build --build-arg BUILDKIT_DEBUG $platformFlag $targetFlag $importCacheFlags $exportCacheFlags $tagFlags $outputFlag $nocacheFilterFlag $attestFlags \
Expand Down
2 changes: 1 addition & 1 deletion hack/release
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if ${BUILDX_CMD} build --help 2>&1 | grep -- '--attest' >/dev/null; then
setFlags+=(--set "*.attest=type=provenance,$prvattrs")
fi
if [[ "$RELEASE" = "true" ]] && [[ "$GITHUB_ACTIONS" = "true" ]]; then
setFlags+=(--set "*.no-cache-filter=git,gobuild-base")
setFlags+=(--set "*.no-cache-filter=gobuild-base")
fi

output=$(mktemp -d -t buildkit-output.XXXXXXXXXX)
Expand Down

0 comments on commit 799f175

Please sign in to comment.