openreplay/scripts/helmcharts/versionUpdater.sh
Rajesh Rajendran 39ae351b6b chore(structure): changed folder structure for helm charts
Signed-off-by: Rajesh Rajendran <rjshrjndrn@gmail.com>
2022-01-17 02:13:58 +05:30

10 lines
428 B
Bash

#!/bin/bash
# This script will update the version of openreplay components.
currentVersion=$1
[[ -z $currentVersion ]] && {
echo "Usage: $0 <appversion>"
echo "eg: $0 v1.5.0"
}
find ./openreplay -type f -iname chart.yaml -exec sed -i "s/AppVersion.*/AppVersion: \"$currentVersion\"/g" {} \;
sed -i "s/fromVersion.*/fromVersion: \"$currentVersion\"/g" vars.yaml
sed -i "s/version.*/version=\"$currentVersion\"/g" init.sh