From 1d680e018b4c1b4d11817fd302f535f6e9a57edd Mon Sep 17 00:00:00 2001 From: Sascha Schwarze Date: Thu, 31 Aug 2023 06:59:34 +0200 Subject: [PATCH] Improve BuildAh query --- hack/check-latest-images.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}")"