Skip to content

Commit

Permalink
Adding GENERATE_SBOM configurable flag instead of hardcoding (#2674)
Browse files Browse the repository at this point in the history
Co-authored-by: Pavan Navarathna <6504783+pavannd1@users.noreply.github.com>
  • Loading branch information
shwetha-97 and pavannd1 committed Feb 20, 2024
1 parent f28f9c3 commit 8347c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit 8347c6a

Please sign in to comment.