From 6d123f61ceee2286e7930ac5e2de073749f15992 Mon Sep 17 00:00:00 2001 From: Trevor Whitney Date: Wed, 16 Oct 2024 11:29:55 -0600 Subject: [PATCH] ci: more debugging --- .github/workflows/scripts/helm-weekly-release.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scripts/helm-weekly-release.sh b/.github/workflows/scripts/helm-weekly-release.sh index b9ea4afe65b5d..d1c872d59a401 100755 --- a/.github/workflows/scripts/helm-weekly-release.sh +++ b/.github/workflows/scripts/helm-weekly-release.sh @@ -13,7 +13,8 @@ find_latest_image_tag() { local regExp="^(k|weekly-k)\d+-[a-z0-9]+" local crane_results crane_results=$(crane ls "${docker_hub_repo}" | grep -P "${regExp}") - echo "${crane_results}" | sed -E "s/([weekly-]*k[[:digit:]]*)-([^-]*).*/\1-\2/g" | sort -Vur | head -1 + sorted_results="$(echo "${crane_results}" | sed -E "s/([weekly-]*k[[:digit:]]*)-([^-]*).*/\1-\2/g" | sort -Vur)" + echo "${sorted_results}" | head -1 } # takes k197-abcdef and returns r197, k197-abcdef-arm64 and returns k197, weekly-k197-abcdef and returns k197