only deploy dev|release branches (#76)

* remove special characters from version string
This commit is contained in:
Shahidh K Muhammed 2018-07-10 17:22:13 +05:30 committed by Anon Ray
parent 50165fc1ed
commit 183cbb169b
3 changed files with 9 additions and 0 deletions

View File

@ -23,6 +23,10 @@ refs:
filters:
branches:
only: /^dev.*/
filter_only_dev_release_branches: &filter_only_dev_release_branches
filters:
branches:
only: /^(dev|release).*/
filter_ignore_branches: &filter_ignore_branches
filters:
branches:
@ -199,5 +203,6 @@ workflows:
- test_and_build_cli
- deploy:
<<: *filter_only_vtags
<<: *filter_only_dev_release_branches
requires:
- test_and_build_console

View File

@ -25,4 +25,6 @@ fi
if [ -z "$VERSION" ]; then VERSION="$($ROOT/get-version.sh)"; fi
VERSION="$(echo $VERSION | tr -cd '[[:alnum:]]._-')"
echo $VERSION

View File

@ -8,4 +8,6 @@ GIT_DIRTY=$(test -n "`git status --porcelain`" && echo "-dirty" || echo "")
VERSION="${GIT_TAG_EXACT}"
test -n "$VERSION" || VERSION="${GIT_BRANCH}-${GIT_SHA}${GIT_DIRTY}"
VERSION="$(echo $VERSION | tr -cd '[[:alnum:]]._-')"
echo "$VERSION"