diff --git a/.circleci/config.yml b/.circleci/config.yml index 0d86385..ecbfe4f 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 8ae349a..06997cb 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