Skip to content

Commit

Permalink
Fix output usage in push action
Browse files Browse the repository at this point in the history
  • Loading branch information
luhi-DT committed Jun 13, 2024
1 parent ea35066 commit 8595551
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hack/build/ci/upload-docker-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ srcImage=$(docker load -i "${imageTarPath}" | cut -d' ' -f3)

docker load --input "${imageTarPath}"
docker tag "${srcImage}" "${targetImage}"
docker push "${targetImage}"
imageinfo=$(docker push "${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)

digest=$(echo "$imageinfo" | cut -d " " -f 3)
echo "digest=${digest}">> "$GITHUB_OUTPUT"

0 comments on commit 8595551

Please sign in to comment.