From 8dfa1a46dc1d172d4db07841ea4b9573a5bb15a7 Mon Sep 17 00:00:00 2001 From: "ryan.kuba" Date: Thu, 7 Jul 2022 20:07:59 -0400 Subject: [PATCH] update pathing for the jq queary to get the real latest published pre-release --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3c5cd9b..8a417e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -59,7 +59,7 @@ RUN \ mkdir -p /wizard && \ if [ "${RELEASE_TYPE}" == "develop" ]; then \ KASM_VERSION=$(curl -sX GET 'https://api.github.com/repos/kasmtech/kasm-install-wizard/releases' \ - | jq -r '[.[] | select (.prerelease==true)][0].name'); \ + | jq -r 'map(select(.prerelease)) | sort_by(.published_at) | last | .tag_name'); \ fi; \ if [ "${RELEASE_TYPE}" == "stable" ]; then \ KASM_VERSION=$(curl -sX GET 'https://api.github.com/repos/kasmtech/kasm-install-wizard/releases/latest' \