From 694a84ff95a9a50ec5f4fc1c71d4d4c5edc01edb Mon Sep 17 00:00:00 2001 From: Shiming Zhang Date: Tue, 18 Jan 2022 17:01:35 +0800 Subject: [PATCH] Fix verify-image (#59) --- hack/verify-image.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hack/verify-image.sh b/hack/verify-image.sh index 042ef24..632cd5a 100755 --- a/hack/verify-image.sh +++ b/hack/verify-image.sh @@ -8,8 +8,9 @@ cp "${file}" "${file}.bak" git apply -R <(curl -fsSL "${patch_url}") -list=$(diff --unified "${file}" "${file}.bak" | grep -e '^+\w' | sed 's/^+//') +list=$(diff --unified "${file}" "${file}.bak" | grep -E '^+\w' | sed 's/^+//' || :) for image in ${list}; do - skopeo inspect --raw "docker://${image}" || { echo "Not Found ${image}" ; exit 1; } + echo "Checking image: ${image}" + skopeo list-tags --retry-times 3 "docker://${image}" || { echo "Not Found ${image}" ; exit 1; } done