mirror of
https://github.com/truenas/charts.git
synced 2026-06-15 06:28:46 +08:00
Update chia versioning update strategy
This commit adds changes to update how we determine if we have an updated tag available for chia - recently we have shifted the versioning scheme on our docker image of chia and this change is to account for that so we can have automated updates.
This commit is contained in:
@@ -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],
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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],
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user