fix chart version when running build.py multiple times
@@ -59,11 +59,12 @@ def build_chart():
with open(os.path.join(CHARTPATH, 'Chart.yaml')) as f:
chart = yaml.load(f)
- chart['version'] = chart['version'] + '-' + version
+ chart['version'] = chart['version'].split('-')[0] + '-' + version
with open(os.path.join(CHARTPATH, 'Chart.yaml'), 'w') as f:
yaml.dump(chart, f)
+
def publish_pages():
version = last_git_modified('.')
subprocess.check_call([
