Merge pull request #90 from truenas/fix-chia-versioning

Update chia versioning update strategy
This commit is contained in:
Waqar Ahmed
2021-07-14 21:45:32 +05:00
committed by GitHub
2 changed files with 6 additions and 4 deletions

View File

@@ -7,13 +7,14 @@ from catalog_update.upgrade_strategy import semantic_versioning
def newer_mapping(image_tags):
key = list(image_tags.keys())[0]
tags = {t.strip('v').replace('_', '.'): t for t in image_tags[key]}
version = semantic_versioning(image_tags[key])
if not version:
return {}
return {
'tags': {key: version},
'app_version': version,
'tags': {key: tags[version]},
'app_version': tags[version],
}

View File

@@ -7,13 +7,14 @@ from catalog_update.upgrade_strategy import semantic_versioning
def newer_mapping(image_tags):
key = list(image_tags.keys())[0]
tags = {t.strip('v').replace('_', '.'): t for t in image_tags[key]}
version = semantic_versioning(image_tags[key])
if not version:
return {}
return {
'tags': {key: version},
'app_version': version,
'tags': {key: tags[version]},
'app_version': tags[version],
}