Skip to content

Commit

Permalink
fixes drift in helm_prepare
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Cole <[email protected]>
  • Loading branch information
Adrian Cole authored and codefromthecrypt committed Dec 31, 2023
1 parent cb2f3a1 commit c8e0020
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build-bin/helm/helm_prepare
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh -ue
#
# Copyright 2015-2022 The OpenZipkin Authors
# Copyright 2023 The OpenZipkin Authors
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
Expand All @@ -15,8 +15,8 @@

# This script prepares the helm chart for a release by updating the versions in the chart file.

trigger_tag=${1?trigger_tag is required. Ex release-chart-1.2.3}
release_version=$(build-bin/git/version_from_trigger_tag release-chart- ${trigger_tag})
trigger_tag=${1?trigger_tag is required. Ex release-1.2.3}
release_version=$(build-bin/git/version_from_trigger_tag release- ${trigger_tag})
release_branch=${3:-master}

# Checkout master, as we release from master, not a tag ref
Expand All @@ -33,13 +33,13 @@ fi

# Update appVersion
latest_app_version=${2?latest_app_version is required. Ex 4.5.6}
sh -c "sed -i 's/appVersion\:\s[0-9.]\+/appVersion\: ${latest_app_version}/g' ./charts/zipkin/Chart.yaml"
sh -c "sed -i 's/appVersion\:\s[0-9.]\+/appVersion\: ${latest_app_version}/g' Chart.yaml"

# Update version
sh -c "sed -i 's/version\:\s[0-9.]\+/version\: ${release_version}/g' ./charts/zipkin/Chart.yaml"
sh -c "sed -i 's/version\:\s[0-9.]\+/version\: ${release_version}/g' Chart.yaml"

# Commit changes to ./charts/zipkin/Chart.yaml
git add ./charts/zipkin/Chart.yaml && git commit -m "chore: prepare chart release ${release_version}"
# Commit changes to Chart.yaml
git add Chart.yaml && git commit -m "chore: prepare chart release ${release_version}"

# Push the changes in ./charts/zipkin/Chart.yaml to the release branch
# Push the changes in Chart.yaml to the release branch
git push origin ${release_branch}

0 comments on commit c8e0020

Please sign in to comment.