diff --git a/hack/images b/hack/images index 5b903263cb61..b7de1f4548b9 100755 --- a/hack/images +++ b/hack/images @@ -79,8 +79,7 @@ fi exportCacheFlags="" if [[ -n "$cacheRefTo" ]] && [[ "$cacheType" = "local" ]]; then exportCacheFlags="--cache-to=type=local,dest=$cacheRefTo " -fi -if [ "$PUSH" = "push" ]; then +elif [ "$PUSH" = "push" ]; then exportCacheFlags="$exportCacheFlags--cache-to=type=inline " fi