diff --git a/update.py b/update.py index 036e608..bbea79e 100755 --- a/update.py +++ b/update.py @@ -8,7 +8,8 @@ REPO = 'mattermost/mattermost-enterprise-edition' 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)) +tags = [tag for tag in tags if re.match( + r"^\d+\.\d+\.\d+$", tag) and int(tags.split('.')[0]) > 5] try: local_dxf = DXF(environ['CI_REGISTRY'], environ['CI_PROJECT_PATH'])