10 lines
481 B
Python
10 lines
481 B
Python
import urllib.request
|
|
import json
|
|
|
|
url = "https://hub.docker.com/v2/repositories/semaphoreui/semaphore/tags?page_size=100"
|
|
req = urllib.request.Request(url, headers={'User-Agent': 'Mozilla/5.0'})
|
|
with urllib.request.urlopen(req, timeout=5) as resp:
|
|
data = json.loads(resp.read().decode())
|
|
ga_tags = [t['name'] for t in data.get('results', []) if not any(x in t['name'] for x in ['-rc', '-beta', '-alpha', '-debug', 'latest'])]
|
|
print("Semaphore GA tags:", ga_tags[:10])
|