From ba3fab72d78a81b81d6b1e97cc90009371bada15 Mon Sep 17 00:00:00 2001 From: maskarb Date: Thu, 16 Jan 2025 12:59:34 -0500 Subject: [PATCH 1/2] use quay api to see if tag is available --- ci/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/functions.sh b/ci/functions.sh index d8abf6cb37..89620feabd 100755 --- a/ci/functions.sh +++ b/ci/functions.sh @@ -183,7 +183,7 @@ function wait_for_image() { local count=0 local max=60 # Try for up to 30 minutes - until podman image search --limit 500 --list-tags "${IMAGE}" | grep -q "${IMAGE_TAG}"; do + until [[ $(curl -k -XGET "https://quay.io/api/v1/repository/redhat-user-workloads/cost-mgmt-dev-tenant/koku/tag?filter_tag_name=like:${IMAGE_TAG}" -Ls | jq '.tags | length') -gt 0 ]]; do echo "${count}: Checking for image ${IMAGE}:${IMAGE_TAG}..." sleep 30 ((count+=1)) From c2bfbeddd1c139f475ed95fa8bb015548348c0f6 Mon Sep 17 00:00:00 2001 From: maskarb Date: Thu, 16 Jan 2025 13:11:55 -0500 Subject: [PATCH 2/2] use specificTag instead --- ci/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/functions.sh b/ci/functions.sh index 89620feabd..ea75b12908 100755 --- a/ci/functions.sh +++ b/ci/functions.sh @@ -183,7 +183,7 @@ function wait_for_image() { local count=0 local max=60 # Try for up to 30 minutes - until [[ $(curl -k -XGET "https://quay.io/api/v1/repository/redhat-user-workloads/cost-mgmt-dev-tenant/koku/tag?filter_tag_name=like:${IMAGE_TAG}" -Ls | jq '.tags | length') -gt 0 ]]; do + until [[ $(curl -k -XGET "https://quay.io/api/v1/repository/redhat-user-workloads/cost-mgmt-dev-tenant/koku/tag?specificTag=${IMAGE_TAG}" -Ls | jq '.tags | length') -gt 0 ]]; do echo "${count}: Checking for image ${IMAGE}:${IMAGE_TAG}..." sleep 30 ((count+=1))