Skip to content

Commit

Permalink
fix: squash also the sbom layer
Browse files Browse the repository at this point in the history
This was omitted by accident in
#1107
  • Loading branch information
ralphbean committed Jul 2, 2024
1 parent 09da36d commit d8be211
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion task/buildah/0.1/buildah.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,13 @@ spec:
container=$(buildah from --pull-never $IMAGE)
buildah copy $container sbom-cyclonedx.json sbom-purl.json /root/buildinfo/content_manifests/
buildah config -a org.opencontainers.image.base.name=${base_image_name} -a org.opencontainers.image.base.digest=${base_image_digest} $container
buildah commit $container $IMAGE
BUILDAH_ARGS=()
if [ "${SQUASH}" == "true" ]; then
BUILDAH_ARGS+=("--squash")
fi
buildah commit "${BUILDAH_ARGS[@]}" $container $IMAGE
status=-1
max_run=5
Expand Down

0 comments on commit d8be211

Please sign in to comment.