Skip to content

Commit

Permalink
Fix issue with API response not containing all tags for runtime versi…
Browse files Browse the repository at this point in the history
…on update (#1514)

We noticed that the action job to update the runtime version in the integration test deployment created a PR in which the version was not the latest. After debugging, we found out that the response from the API call does not contain all the tags. This PR addresses the issue after adding a limit query parameter
  • Loading branch information
vatsrahul1001 authored Apr 19, 2024
1 parent afdbace commit dc42a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/get_latest_runtime_image_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

def get_latest_tag(repository: str) -> str:
"""Get the latest semantic version tag from a Quay.io repository."""
url = f"https://quay.io/api/v1/repository/{repository}/tag/"
url = f"https://quay.io/api/v1/repository/{repository}/tag/?limit=1000"
response = requests.get(url)
response.raise_for_status()
data = response.json()
Expand Down

0 comments on commit dc42a6e

Please sign in to comment.