From 8347c6a7789ad70a0478a105476a29e39919c713 Mon Sep 17 00:00:00 2001 From: Shwetha Subramanian <42267522+shwetha-97@users.noreply.github.com> Date: Tue, 20 Feb 2024 12:51:15 -0800 Subject: [PATCH] Adding GENERATE_SBOM configurable flag instead of hardcoding (#2674) Co-authored-by: Pavan Navarathna <6504783+pavannd1@users.noreply.github.com> --- build/package.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/package.sh b/build/package.sh index a4f096c980..7306284c58 100755 --- a/build/package.sh +++ b/build/package.sh @@ -70,5 +70,5 @@ sed \ -e "s|ARG_ARCH|${ARCH}|g" \ -e "s|ARG_SOURCE_BIN|${SOURCE_BIN}|g" \ Dockerfile.in > .dockerfile-${ARCH} -docker buildx build --push --pull --sbom=true ${baseimagearg:-} --build-arg kanister_version=${VERSION} -t ${IMAGE}:${VERSION} --platform linux/${ARCH} -f .dockerfile-${ARCH} . +docker buildx build --push --pull --sbom=${GENERATE_SBOM:-false} ${baseimagearg:-} --build-arg kanister_version=${VERSION} -t ${IMAGE}:${VERSION} --platform linux/${ARCH} -f .dockerfile-${ARCH} . docker images -q ${IMAGE}:${VERSION}