diff --git a/bin/update_docker.py b/bin/update_docker.py index 8e7ba5dae..e090f3f0f 100755 --- a/bin/update_docker.py +++ b/bin/update_docker.py @@ -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()