We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9128bdc + 4582286 commit 88a8a9dCopy full SHA for 88a8a9d
check_stable.py
@@ -25,11 +25,12 @@ def rust_stable_version():
25
26
def tag_exists(tag):
27
"""Retrieve our built tags and check we have built a given one"""
28
- url = f'https://registry.hub.docker.com/v1/repositories/{DOCKERHUB_REPO}/tags'
+ (namespace, repo) = DOCKERHUB_REPO.split("/")
29
+ url = f'https://registry.hub.docker.com/v2/namespaces/{namespace}/repositories/{repo}/tags'
30
req = urllib.urlopen(url)
31
data = json.loads(req.read())
32
req.close()
- for x in data:
33
+ for x in data['results']:
34
if x['name'] == tag:
35
return True
36
return False
0 commit comments