Commit 004d8db8 authored by sonicaj's avatar sonicaj

Update chia catalog item in test train

parent bbc5fa98
apiVersion: v1 apiVersion: v1
appVersion: 1.1.7
dependencies:
- name: common
repository: file://../../../library/common/2105.0.0
version: 2105.0.0
description: Global, Versioned, peer-to-peer filesystem. description: Global, Versioned, peer-to-peer filesystem.
name: chia home: https://www.chia.net/
version: 1.2.1 icon: https://www.chia.net/img/chia_logo.svg
appVersion: 1.1.4
keywords: keywords:
- storage - storage
- crypto - crypto
- blockchain - blockchain
home: https://www.chia.net/ name: chia
icon: https://www.chia.net/img/chia_logo.svg
sources: sources:
- https://github.com/Chia-Network/chia-blockchain - https://github.com/Chia-Network/chia-blockchain
- https://github.com/orgs/chia-network/packages/container/package/chia - https://github.com/orgs/chia-network/packages/container/package/chia
dependencies: version: 1.2.2
- name: common
repository: file://../../../library/common/2105.0.0
version: 2105.0.0
image: image:
repository: ghcr.io/chia-network/chia
tag: 1.1.4
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
repository: ghcr.io/chia-network/chia
tag: 1.1.7
updateStrategy: Recreate updateStrategy: Recreate
image: image:
repository: ghcr.io/chia-network/chia repository: ghcr.io/chia-network/chia
tag: 1.1.4 tag: 1.1.7
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
updateStrategy: Recreate updateStrategy: Recreate
......
{"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