Skip to content

Commit 0ccfe62

Browse files
authored
Merge pull request moby#3597 from crazy-max/fix-hack-images
hack: do not set attest flags when exporting to docker
2 parents ecc5937 + 2c90a7b commit 0ccfe62

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hack/images

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,15 @@ if [[ "$TAG" == "local" ]]; then
3939
fi
4040
fi
4141

42+
attestFlags="$(buildAttestFlags)"
43+
4244
outputFlag="--output=type=image,push=false"
4345
if [ "$PUSH" = "push" ]; then
4446
outputFlag="--output=type=image,buildinfo-attrs=true,push=true"
4547
fi
4648
if [ -n "$localmode" ]; then
4749
outputFlag="--output=type=docker,buildinfo-attrs=true"
50+
attestFlags=""
4851
fi
4952

5053
targetFlag=""
@@ -88,5 +91,5 @@ for tagName in $tagNames; do
8891
tagFlags="$tagFlags--tag=$tagName "
8992
done
9093

91-
buildxCmd build $platformFlag $targetFlag $importCacheFlags $exportCacheFlags $tagFlags $outputFlag $(buildAttestFlags) \
94+
buildxCmd build $platformFlag $targetFlag $importCacheFlags $exportCacheFlags $tagFlags $outputFlag $attestFlags \
9295
$currentcontext

0 commit comments

Comments
 (0)