From 021473f86f6350e64e355848b5f8eea2b2af149a Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Tue, 5 Mar 2019 14:50:01 +0300 Subject: [PATCH] ci: add credentials for release script --- .circleci/config.yml | 6 ++++++ .circleci/make-release.sh | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0d86385bc..ecbfe4f50 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: diff --git a/.circleci/make-release.sh b/.circleci/make-release.sh index 8ae349a60..06997cbf1 100755 --- a/.circleci/make-release.sh +++ b/.circleci/make-release.sh @@ -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