ci: add credentials for release script

This commit is contained in:
Alexander Zobnin
2019-03-05 14:50:01 +03:00
parent 872d92d37f
commit 021473f86f
2 changed files with 11 additions and 0 deletions

View File

@@ -7,6 +7,11 @@ set -o errexit
# Use the error status of the first failure, rather than that of the last item in a pipeline.
set -o pipefail
# Setup git env
git config --global user.email $CI_GIT_EMAIL
git config --global user.name $CI_GIT_USER
echo "git user is $CI_GIT_USER ($CI_GIT_EMAIL)"
RELEASE_VER=$(echo $CIRCLE_TAG | grep -Po "(?<=v)[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)")
if [ -z $RELEASE_VER ]; then