Skip to content

Commit

Permalink
Merge pull request #776 from ccamacho/main
Browse files Browse the repository at this point in the history
ci: fix digest field
  • Loading branch information
ccamacho authored Jul 24, 2024
2 parents f2d04ff + 04d2625 commit 2a148d4
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 2a148d4

Please sign in to comment.