blob: c7cfe148abb9d067b4b7d77f9ef407af347c24ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
if [ $# -eq 0 ]; then
echo "You must pass the version number."
exit 1
fi
sed -i "3s/.*/version = \"$1\"/" Cargo.toml
sed -i "12s/.*/LABEL version=\"$1\"/" Dockerfile
cargo c
git add Cargo.*
git add Dockerfile
git commit -m "release: version $1"
git tag -a "v$1" -m "Version $1"
|