Skip to content

Commit

Permalink
build docker - add --provenance=false flag
Browse files Browse the repository at this point in the history
This is causing failure to combine the multi-arch images. See
docker/buildx#1509 for discussion

Signed-off-by: David Porter <[email protected]>
  • Loading branch information
bobbypage committed Mar 2, 2024
1 parent 74350be commit 1bbd39c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ done
for arch in "${!arches[@]}"; do
GOARCH="$arch" GO_CGO_ENABLED="0" OUTPUT_NAME_WITH_ARCH="true" build/build.sh
arch_specific_image="${image_name}-${arch}:${VERSION}"
docker buildx build --platform "linux/${arch}" --build-arg VERSION="$VERSION" -f deploy/Dockerfile -t "$arch_specific_image" --progress plain --push .
docker buildx build --platform "linux/${arch}" --provenance=false --build-arg VERSION="$VERSION" -f deploy/Dockerfile -t "$arch_specific_image" --progress plain --push .
docker manifest create --amend "$final_image" "$arch_specific_image"
docker manifest annotate --os=linux --arch="$arch" "$final_image" "$arch_specific_image"
done
Expand Down

0 comments on commit 1bbd39c

Please sign in to comment.