Skip to content

Build fails if one base image is a substring of another. #1791

@ralphbean

Description

@ralphbean

I had a build that had two FROM lines, one was registry.access.redhat.com/ubi9/ubi:latest and the other was registry.access.redhat.com/ubi9:latest.

The build failed later on when trying to inject the base image references into the SBOM because the /shared/base_image_digests file had an invalid format.

I think the culprit is the buildah images --format '{{ .Name }}:{{ .Tag }}@{{ .Digest }}' --filter reference="$image" invocation, which (I think) limits the list of images returned to only ones that match the string $image as a filter. That would at least make sense why this shows up as an error when one base/builder image is a substring of another.

Related: #1790

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions