Skip to content

Commit 7812741

Browse files
committed
Update update_docker.py
1 parent d132305 commit 7812741

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

bin/update_docker.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,15 @@ class Image:
9696
)
9797
elif image.image_name.startswith("ghcr.io/"):
9898
repository = image.image_name[8:]
99-
response = requests.get("https://ghcr.io/token", params={"scope": f"repository:{repository}:pull"})
99+
response = requests.get(
100+
"https://ghcr.io/token", params={"scope": f"repository:{repository}:pull"}
101+
)
100102
response.raise_for_status()
101103
token = response.json()["token"]
102-
response = requests.get(f"https://ghcr.io/v2/{repository}/tags/list", headers={"Authorization": f"Bearer {token}"})
104+
response = requests.get(
105+
f"https://ghcr.io/v2/{repository}/tags/list",
106+
headers={"Authorization": f"Bearer {token}"},
107+
)
103108
response.raise_for_status()
104109
tags = [(Version(tag), tag) for tag in response.json()["tags"] if tag != "latest"]
105110
tags.sort(reverse=True)

0 commit comments

Comments
 (0)