Skip to content

Commit

Permalink
Merge pull request #5222 from crazy-max/fix-nocachefilter
Browse files Browse the repository at this point in the history
hack: fix no-cache-filter on release
  • Loading branch information
tonistiigi authored Aug 12, 2024
2 parents 9e64905 + 799f175 commit d1e6c91
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 d1e6c91

Please sign in to comment.