Get image digest from buildah

This commit is contained in:
2023-07-23 21:30:42 -04:00
parent 693fa5901c
commit b771f1da87

View File

@@ -62,5 +62,5 @@ build:
buildah push $FULL_IMAGE_NAME:$TAG
done
- DIGEST=($(buildah images --format '{{.Digest}}' $FULL_IMAGE_NAME:$TAGS))
- IMAGE_DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' $FULL_IMAGE_NAME:$TAGS)
- IMAGE_DIGEST=$(buildah inspect --format='{{index .RepoDigests 0}}' $FULL_IMAGE_NAME:$TAGS)
- cosign sign $IMAGE_DIGEST