Skip to content

Commit

Permalink
Update update_docker.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Oct 20, 2024
1 parent 7812741 commit 385412c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/update_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ class Image:
headers={"Authorization": f"Bearer {token}"},
)
response.raise_for_status()
tags = [(Version(tag), tag) for tag in response.json()["tags"] if tag != "latest"]
tags.sort(reverse=True)
tag_name = tags[0][1]
ghcr_tags = [(Version(tag), tag) for tag in response.json()["tags"] if tag != "latest"]
ghcr_tags.sort(reverse=True)
tag_name = ghcr_tags[0][1]
else:
response = requests.get(f"https://hub.docker.com/v2/repositories/{image.image_name}/tags")
response.raise_for_status()
Expand Down

0 comments on commit 385412c

Please sign in to comment.