Update file update.py

This commit is contained in:
2023-07-27 08:59:07 +00:00
parent 9ba53cf787
commit b2ecd4f130

View File

@@ -2,6 +2,7 @@
import re
from dxf import DXF
from os import environ
from packaging import version
REPO = 'mattermost/mattermost-enterprise-edition'
@@ -9,7 +10,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(tag.split('.')[0]) > 6]
r"^\d+\.\d+\.\d+$", tag) and int(tag.split('.')[0]) >= 8]
try:
local_dxf = DXF(environ['CI_REGISTRY'], environ['CI_PROJECT_PATH'])