fix: remove old tags

This commit is contained in:
Yoshino-s
2023-06-06 13:00:57 +08:00
parent b62d1dfbeb
commit f945e6baeb

View File

@@ -6,7 +6,8 @@ from os import environ
dxf = DXF('ghcr.io', "coder/coder") dxf = DXF('ghcr.io', "coder/coder")
dxf.authenticate(actions=["pull"]) dxf.authenticate(actions=["pull"])
tags = dxf.list_aliases() tags = dxf.list_aliases()
tags = [tag for tag in tags if re.match(r"^v\d+\.\d+\.\d+$", tag)] tags = [tag for tag in tags if re.match(
r"^v\d+\.\d+\.\d+$", tag) and int(tag.split('.')[1]) > 22]
try: try: