diff --git a/build/package.sh b/build/package.sh index 0362b10966..135b950c61 100755 --- a/build/package.sh +++ b/build/package.sh @@ -66,5 +66,5 @@ sed \ -e "s|ARG_ARCH|${ARCH}|g" \ -e "s|ARG_SOURCE_BIN|${SOURCE_BIN}|g" \ Dockerfile.in > .dockerfile-${ARCH} -docker build --pull ${baseimagearg:-} --build-arg kanister_version=${VERSION} -t ${IMAGE}:${VERSION} -f .dockerfile-${ARCH} . +docker buildx build --push --pull --sbom=true ${baseimagearg:-} --build-arg kanister_version=${VERSION} -t ${IMAGE}:${VERSION} -f .dockerfile-${ARCH} . docker images -q ${IMAGE}:${VERSION}