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

@@ -97,7 +97,13 @@ jobs:
working_directory: ~/alexanderzobnin/grafana-zabbix working_directory: ~/alexanderzobnin/grafana-zabbix
docker: docker:
- image: circleci/node:8 - image: circleci/node:8
environment:
CI_GIT_USER: CircleCI
CI_GIT_EMAIL: ci@grafana.com
steps: steps:
- add_ssh_keys:
fingerprints:
- "dc:7e:54:e0:aa:56:4d:e5:60:7b:f3:51:24:2d:d3:29"
- checkout - checkout
- restore_cache: - restore_cache:
keys: keys:

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. # Use the error status of the first failure, rather than that of the last item in a pipeline.
set -o pipefail 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}(-.+|[^-.]*)") RELEASE_VER=$(echo $CIRCLE_TAG | grep -Po "(?<=v)[0-9]+(\.[0-9]+){2}(-.+|[^-.]*)")
if [ -z $RELEASE_VER ]; then if [ -z $RELEASE_VER ]; then