Commit 7e40aa20 authored by sonicaj's avatar sonicaj

Update nextcloud catalog item in test train

parent 59c7faee
apiVersion: v2 apiVersion: v2
name: nextcloud name: nextcloud
version: 1.3.0 version: 1.3.0
appVersion: 20.0.7 appVersion: 21.0.2
description: A file sharing server that puts the control and security of your own data back into your hands. description: A file sharing server that puts the control and security of your own data back into your hands.
keywords: keywords:
- nextcloud - nextcloud
......
image: image:
repository: nextcloud repository: nextcloud
tag: 20.0.7 tag: 21.0.2
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
## ##
image: image:
repository: nextcloud repository: nextcloud
tag: 19.0.3-apache tag: 21.0.2
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
nextcloud: nextcloud:
......
{"filename": "ix_values.yaml", "keys": ["image"]}
#!/usr/bin/python3
import json
import sys
from catalog_update.upgrade_strategy import semantic_versioning
def newer_mapping(image_tags):
key = list(image_tags.keys())[0]
version = semantic_versioning(image_tags[key])
if not version:
return {}
return {
'tags': {key: version},
'app_version': version,
}
if __name__ == '__main__':
if len(sys.argv) != 2:
exit(1)
print(json.dumps(newer_mapping(json.loads(sys.argv[1]))))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment