Open cmoulliard opened 2 months ago
It appears that you passed sha256:cf6762b050e84d6c5cf31542f339edf312d9cb10a85bea92c27b1a86bb437d2d
as the BASE_IMAGES param. The task failed to resolve this to an image, because it's not an image reference, it's just a digest
It appears that you passed
sha256:cf6762b050e84d6c5cf31542f339edf312d9cb10a85bea92c27b1a86bb437d2d
as the BASE_IMAGES param. The task failed to resolve this to an image, because it's not an image reference, it's just a digest
The script should then report a more user friendly message by the way ;-)
What is supposed to be done by the source-build
task ? I'm asking this question as currently when we build paketo buildpack
images the source will consist mainly of config files like this https://github.com/redhat-buildpacks/builder-ubi-base/blob/main/builder.toml or go projects (= a buildpack) as this one as example: https://github.com/paketo-buildpacks/quarkus
What is supposed to be done by the source-build task ?
At a high-level: provide source code for all the software in the image. That's SRPMs for all the RPMs, source archives for all "upstream" dependencies (Go modules, python packages, ...), the source repo for the build etc.
The BASE_IMAGES param is used to figure out the parent image for the build. IIRC the source build task merges the source container of the parent image into the build of the current source container (because all the software in the parent image is usually also present in the child image)
The param is optional, if the base image is reported in the SBOM (and marked as a base image), the task will take it from the SBOM instead
Issue
The task "source-build" fails using our PipelineRun - https://github.com/redhat-buildpacks/builder-ubi-base/blob/main/.tekton/pipelinerun-builder-ubi-base.yaml#L438-L457 and reports such an error: