We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e5ef25 commit 4dc3775Copy full SHA for 4dc3775
sbin/docker_buildx.sh
@@ -57,10 +57,15 @@ docker_buildx::docker_buildx() {
57
58
docker buildx inspect --bootstrap
59
60
- docker buildx build $in_BUILDX_ARGS .
+ local BUILDX_VERSION=$( docker buildx version | awk '{print $2}' | sed 's/[^0-9.]//g' )
61
+ local BUILDX_PROVENANCE_ARGS="--provenance=false"
62
+ if dpkg --compare-versions "${BUILDX_VERSION}" "lt" "0.10.0"; then
63
+ BUILDX_PROVENANCE_ARGS=""
64
+ fi
65
+
66
+ docker buildx build $BUILDX_PROVENANCE_ARGS $in_BUILDX_ARGS .
67
RV=$?
68
echo "exit code from the previous command -> $RV"
69
cleanup
70
return $RV
-}
-
71
+}
0 commit comments