ci: add credentials for release script
This commit is contained in:
@@ -97,7 +97,13 @@ jobs:
|
||||
working_directory: ~/alexanderzobnin/grafana-zabbix
|
||||
docker:
|
||||
- image: circleci/node:8
|
||||
environment:
|
||||
CI_GIT_USER: CircleCI
|
||||
CI_GIT_EMAIL: ci@grafana.com
|
||||
steps:
|
||||
- add_ssh_keys:
|
||||
fingerprints:
|
||||
- "dc:7e:54:e0:aa:56:4d:e5:60:7b:f3:51:24:2d:d3:29"
|
||||
- checkout
|
||||
- restore_cache:
|
||||
keys:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user