Skip to content

Commit

Permalink
ci: fix digest field
Browse files Browse the repository at this point in the history
This commit refers to the
correct image digest field.
  • Loading branch information
ccamacho committed Jul 24, 2024
1 parent d246b9d commit 04d2625
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/container_sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ for image in "${container_images[@]}"; do
exists=$(curl -H "Authorization: Bearer XYZ" -X GET "https://quay.io/api/v1/repository/kubeinit/$container/tag/" | jq .tags[].name | grep \"$tag\" | uniq)

if [ -n "$exists" ]; then
quay_hash=$(skopeo inspect --raw docker://quay.io/kubeinit/$container:$tag | jq -r '.digest')
docker_hash=$(skopeo inspect --raw docker://docker.io/$namespace/$container:$tag | jq -r '.digest')
quay_hash=$(skopeo inspect --raw docker://quay.io/kubeinit/$container:$tag | jq -r '.config.digest')
docker_hash=$(skopeo inspect --raw docker://docker.io/$namespace/$container:$tag | jq -r '.config.digest')

if [ "$quay_hash" == "$docker_hash" ]; then
echo "The image hashes for tag $tag in kubeinit/$container and docker.io/$namespace/$container match. No update needed."
Expand Down

0 comments on commit 04d2625

Please sign in to comment.