Skip to content

Commit

Permalink
ci: add credentials for release script
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderzobnin committed Mar 5, 2019
1 parent 872d92d commit 021473f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,13 @@ jobs:
working_directory: ~/alexanderzobnin/grafana-zabbix
docker:
- image: circleci/node:8
environment:
CI_GIT_USER: CircleCI
CI_GIT_EMAIL: [email protected]
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:
Expand Down
5 changes: 5 additions & 0 deletions .circleci/make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 021473f

Please sign in to comment.