mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-11-13 09:17:21 +03:00
only deploy dev|release branches (#76)
* remove special characters from version string
This commit is contained in:
parent
50165fc1ed
commit
183cbb169b
@ -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
|
@ -25,4 +25,6 @@ fi
|
||||
|
||||
if [ -z "$VERSION" ]; then VERSION="$($ROOT/get-version.sh)"; fi
|
||||
|
||||
VERSION="$(echo $VERSION | tr -cd '[[:alnum:]]._-')"
|
||||
|
||||
echo $VERSION
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user