Return the imageDigest of an image built with plugin/kaniko-ecr
complete
N
Nickel Reindeer
We use the plugin kaniko-ecr to build and push images to ECR. We would like to know the imageDigest of the image that was built and pushed. The value we need is already being written to a file within the plugin execution by using the
--digest-file
flag on the kaniko command. Sending that back to us as an output variable would be fantastic. Without it, we have to make a network request to describe-image
based on the tag to get info about the image it just pushed.Log In
N
Nofar Bluestein
complete
N
Nofar Bluestein
Hey,
The image digest is now exported to the 'digest' output variable. the update was done with version 1.10.7 of "plugins/kaniko-ecr"
Regards,
Nofar Bluestein
CI Product team
This post was marked as
in progress
N
Nickel Reindeer
In the meantime we were able to figure out a workaround. By adding a sharedPath to the stage, and with the latest kaniko where there is a setting
image_name_with_digest_file
which is set to a file in that shared path, the image name and digest is written to the file and can be read by subsequent steps.Harness Engineering
long-term
N
Nofar Bluestein
under review