Skip to content

Commit

Permalink
use quay api to see if tag is available (#5451)
Browse files Browse the repository at this point in the history
  • Loading branch information
maskarb authored Jan 16, 2025
1 parent 43f3859 commit 375adb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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?specificTag=${IMAGE_TAG}" -Ls | jq '.tags | length') -gt 0 ]]; do
echo "${count}: Checking for image ${IMAGE}:${IMAGE_TAG}..."
sleep 30
((count+=1))
Expand Down

0 comments on commit 375adb1

Please sign in to comment.