Skip to content

Commit

Permalink
hack: do not cache buildkit-export stage on ci
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed Jan 27, 2023
1 parent c169b71 commit a06cedf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hack/images
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,10 @@ for tagName in $tagNames; do
tagFlags="$tagFlags--tag=$tagName "
done

buildxCmd build $platformFlag $targetFlag $importCacheFlags $exportCacheFlags $tagFlags $outputFlag $attestFlags \
nocacheFilterFlags=""
if [ "$GITHUB_ACTIONS" = "true" ]; then
nocacheFilterFlags="--no-cache-filter=buildkit-export"
fi

buildxCmd build $platformFlag $targetFlag $importCacheFlags $exportCacheFlags $tagFlags $outputFlag $nocacheFilterFlags $attestFlags \
$currentcontext

0 comments on commit a06cedf

Please sign in to comment.