-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #515 from hilary/bump-version
Bump and tag
- Loading branch information
Showing
6 changed files
with
92 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,9 @@ _vendor-* | |
|
||
/out | ||
|
||
# Build artifacts | ||
Dockerfile-e | ||
|
||
# Snapcraft | ||
parts/ | ||
prime/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
# Bump defaults to patch. We provide friendly aliases | ||
# for patch, minor and major | ||
BUMP=${BUMP:-patch} | ||
case "$BUMP" in | ||
feature | minor) | ||
BUMP="minor" | ||
;; | ||
breaking | major) | ||
BUMP="major" | ||
;; | ||
*) | ||
BUMP="patch" | ||
;; | ||
esac | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
version="$("$DIR"/../scripts/version.sh -s)" | ||
new_version="v$(sembump --kind "$BUMP" "$version")" | ||
|
||
echo "Bumping version from v${version} to ${new_version}" | ||
|
||
git tag -m "release ${new_version}" -a "$new_version" && git push --tags | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters