Skip to content

Commit

Permalink
switch Chart.yaml with backup
Browse files Browse the repository at this point in the history
  • Loading branch information
heanlan committed May 13, 2021
1 parent 8f15223 commit b663a2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hack/generate-manifest-collector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ if [ "$MODE" == "release" ]; then
# update the Chart version
version=$(sed -n 's/v\(.*\)-dev/\1/p' $THIS_DIR/../VERSION)
sed -i.bak -e "s/^version.*/version: ${version}/g" Chart.yaml
cp -f "Chart.yaml.bak" "Chart.yaml"
rm "Chart.yaml.bak"
# replace the line starting with "image_tag", and create a backup of the original one
sed -i.bak -e "s/^image_tag.*/image_tag: $IMG_TAG/g" values.yaml
Expand Down

0 comments on commit b663a2a

Please sign in to comment.