Skip to content

Commit

Permalink
Fix release pipeline - add digest
Browse files Browse the repository at this point in the history
  • Loading branch information
luhi-DT committed Jun 12, 2024
1 parent 45ac7fe commit f234378
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 3 additions & 0 deletions hack/build/ci/upload-docker-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ srcImage=$(docker load -i "${imageTarPath}" | cut -d' ' -f3)
docker load --input "${imageTarPath}"
docker tag "${srcImage}" "${targetImage}"
docker push "${targetImage}"

digest=$(docker image list --format "{{.Digest}}" "${targetImage}")
echo "digest=${digest}">> "$GITHUB_OUTPUT"
6 changes: 1 addition & 5 deletions hack/build/push_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,4 @@ else
CONTAINER_CMD=docker
fi

digest=$(${CONTAINER_CMD} push "${out_image}")

if [[ ! -z $GITHUB_OUTPUT ]]; then
echo "digest=${digest}">> $GITHUB_OUTPUT
fi
${CONTAINER_CMD} push "${out_image}"

0 comments on commit f234378

Please sign in to comment.