Skip to content

Commit

Permalink
Fixing tags in helm charts (istio#13993)
Browse files Browse the repository at this point in the history
* Fixing tags in helm charts

* Fixing tags in helm charts

* better grep search
  • Loading branch information
utka authored and istio-testing committed May 20, 2019
1 parent 1eee195 commit 025b290
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions release/gcb/helm_values.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ function fix_values_yaml() {
# Update version string in yaml files.
sed -i "s|hub: gcr.io/istio-release|hub: ${CB_DOCKER_HUB}|g" ./"istio-${CB_VERSION}"/install/kubernetes/helm/istio*/values.yaml
sed -i "s|tag: .*-latest-daily|tag: ${CB_VERSION}|g" ./"istio-${CB_VERSION}"/install/kubernetes/helm/istio*/values.yaml
current_tag=$(grep "appVersion" ./"istio-${CB_VERSION}"/install/kubernetes/helm/istio/Chart.yaml | cut -d ' ' -f2)
if [ "${current_tag}" != "${CB_VERSION}" ]; then
find . -type f -exec sed -i "s/tag: ${current_tag}/tag: ${CB_VERSION}/g" {} \;
find . -type f -exec sed -i "s/version: ${current_tag}/version: ${CB_VERSION}/g" {} \;
find . -type f -exec sed -i "s/appVersion: ${current_tag}/appVersion: ${CB_VERSION}/g" {} \;
find . -type f -exec sed -i "s/istio-release\/releases\/${current_tag}/istio-release\/releases\/${CB_VERSION}/g" {} \;
fi

# replace prerelease with release location for istio.io repo
if [ "${CB_PIPELINE_TYPE}" = "monthly" ]; then
Expand Down

0 comments on commit 025b290

Please sign in to comment.