From 04d26258e23ec7382c9aede8c464b4135693c578 Mon Sep 17 00:00:00 2001 From: Carlos Camacho Date: Wed, 24 Jul 2024 16:22:36 +0200 Subject: [PATCH] ci: fix digest field This commit refers to the correct image digest field. --- ci/container_sync.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/container_sync.sh b/ci/container_sync.sh index c20b71f0c..e1e298919 100755 --- a/ci/container_sync.sh +++ b/ci/container_sync.sh @@ -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."