From 83a1909e5c5abfb749fdb61f7f429ddecc284616 Mon Sep 17 00:00:00 2001 From: Guilherme Caponetto <638737+caponetto@users.noreply.github.com> Date: Mon, 4 Nov 2024 12:19:35 -0300 Subject: [PATCH] Improve tag resolution on the Build notebook images step (#83) --- .github/workflows/build.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 707764ba7..7fbcbd3b3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -289,9 +289,7 @@ jobs: URLS="" for tag_prefix in $(echo "${{ env.QUAY_WORKBENCH_IMAGES_TAG_PREFIX_CSV }}" | tr ',' '\n'); do - LATEST_TAG=$(curl -s "https://quay.io/api/v1/repository/${{ env.QUAY_WORKBENCH_IMAGES_REPOSITORY}}/tag/?onlyActiveTags=true" | \ - jq -r ".tags | map(select(.name | startswith(\"${tag_prefix}\"))) | .[].name" | \ - sort -r | head -n 1) + LATEST_TAG=$(curl -s "https://quay.io/api/v1/repository/${{ env.QUAY_WORKBENCH_IMAGES_REPOSITORY}}/tag/?onlyActiveTags=true&filter_tag_name=like:${tag_prefix}&limit=1" | jq -r ".tags[].name") echo "Latest tag: $LATEST_TAG" CONTAINER_IMAGE=ghcr.io/${{ github.repository }}/workbench-images:${LATEST_TAG}${TAG_SUFFIX}