Jib: Output SHA hash of built image

Created on 23 Jan 2019  路  2Comments  路  Source: GoogleContainerTools/jib

Description of the issue:
After pushing an image, it would be great to get the SHA hash of the image to be outputted (stdout). i "pin" the docker image when deploying to k8s, with the "@sha" suffix after the image name and tag. however, unlike docker build and other tools, jib doesn't output the SHA hash of the image when building/pushing. so i have to pull by tag to get the sha.
so, would it be possible to output the SHA hash of the image built?

Expected behavior:
-
Steps to reproduce:
-
Environment:

jib-maven-plugin Configuration:

PASTE YOUR pom.xml CONFIGURATION HERE

jib-gradle-plugin Configuration:

PASTE YOUR build.gradle CONFIGURATION HERE

Log output:

Additional Information:

Most helpful comment

Hi @birdayz , Jib outputs the SHA hash of the image as a file in the build output directory. For Maven, this would usually be target/jib-image.digest, and for Gradle, this would usually be build/jib-image.digest.

All 2 comments

Hi @birdayz , Jib outputs the SHA hash of the image as a file in the build output directory. For Maven, this would usually be target/jib-image.digest, and for Gradle, this would usually be build/jib-image.digest.

thank you! :)

Was this page helpful?
0 / 5 - 0 ratings