Skip to content

Commit

Permalink
Replace docker manifest list command for digest
Browse files Browse the repository at this point in the history
  • Loading branch information
luhi-DT committed Jun 12, 2024
1 parent f234378 commit 2da9298
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hack/build/ci/upload-docker-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ docker load --input "${imageTarPath}"
docker tag "${srcImage}" "${targetImage}"
docker push "${targetImage}"

digest=$(docker image list --format "{{.Digest}}" "${targetImage}")
# filtering by image-tag directly does not work currently see: https://github.com/moby/moby/issues/29901
digest=$(docker images --digests --format "{{.Repository}}:{{.Tag}}@{{.Digest}}" | grep "${targetImage}" | cut -d '@' -f 2)

echo "digest=${digest}">> "$GITHUB_OUTPUT"

0 comments on commit 2da9298

Please sign in to comment.