fix: remove old tags

This commit is contained in:
Yoshino-s
2023-06-06 11:37:44 +08:00
parent aaba6407cb
commit 0cfb709b11

View File

@@ -9,7 +9,7 @@ dxf = DXF('registry-1.docker.io', REPO)
dxf.authenticate(actions=["pull"])
tags = dxf.list_aliases()
tags = [tag for tag in tags if re.match(
r"^\d+\.\d+\.\d+$", tag) and int(tags.split('.')[0]) > 5]
r"^\d+\.\d+\.\d+$", tag) and int(tag.split('.')[0]) > 5]
try:
local_dxf = DXF(environ['CI_REGISTRY'], environ['CI_PROJECT_PATH'])