Skip to content

Commit 2a148d4

Browse files
authored
Merge pull request #776 from ccamacho/main
ci: fix digest field
2 parents f2d04ff + 04d2625 commit 2a148d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/container_sync.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ for image in "${container_images[@]}"; do
8484
exists=$(curl -H "Authorization: Bearer XYZ" -X GET "https://quay.io/api/v1/repository/kubeinit/$container/tag/" | jq .tags[].name | grep \"$tag\" | uniq)
8585

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

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

0 commit comments

Comments
 (0)