Skip to content
This repository has been archived by the owner on Mar 28, 2020. It is now read-only.

Commit

Permalink
hack/release: add automate bump-up script (#1849)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongchaodeng committed Jan 10, 2018
1 parent 6bd111e commit e730a3a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions hack/release/bump_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

# Usage:
# ./hack/release/bump_version.sh 0.8.0 0.8.1

oldv=$1
newv=$2

echo "old version: ${oldv}, new version: ${newv}"

sed -i.bak -e "s/${oldv}+git/${newv}/g" version/version.go
sed -i.bak -e "s/${oldv}/${newv}/g" example/deployment.yaml
sed -i.bak -e "s/${oldv}/${newv}/g" example/etcd-backup-operator/deployment.yaml
sed -i.bak -e "s/${oldv}/${newv}/g" example/etcd-restore-operator/deployment.yaml

rm version/version.go.bak
rm example/deployment.yaml.bak
rm example/etcd-backup-operator/deployment.yaml.bak
rm example/etcd-restore-operator/deployment.yaml.bak

0 comments on commit e730a3a

Please sign in to comment.