diff --git a/hack/check-latest-images.sh b/hack/check-latest-images.sh index 98057314d..9acb422a4 100755 --- a/hack/check-latest-images.sh +++ b/hack/check-latest-images.sh @@ -46,7 +46,7 @@ function update() { # Determine the latest tag QUERY=".tag_name" if [[ ${IMAGE} == *buildah* ]]; then - QUERY=".tags | .[0].name" + QUERY=".tags | sort_by(.name) | reverse | .[0].name" fi LATEST_TAG="$(curl --silent --retry 3 "${LATEST_RELEASE_URL}" | jq --raw-output "${QUERY}")"