Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ralphbean opened this issue Jan 6, 2025 · 0 comments
Open

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

ralphbean opened this issue Jan 6, 2025 · 0 comments

Comments

@ralphbean
Copy link
Member

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

ralphbean added a commit to konflux-ci/yq-container that referenced this issue Jan 6, 2025
Avoid triggering a bug in the buildah task:
konflux-ci/build-definitions#1791
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant