Skip to content

Commit

Permalink
Improve tag resolution on the Build notebook images step (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
caponetto authored Nov 4, 2024
1 parent bf3c637 commit 83a1909
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 83a1909

Please sign in to comment.