Update file update.py
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user