@@ -58,35 +58,20 @@ jobs:
5858 command : |
5959 apk add --no-cache \
6060 py-pip=9.0.0-r1
61- - run :
62- name : Define run environment variables
63- command : |
64- echo 'export COMMIT_MESSAGE="$(git log --format=%B -n 1)"' >> $BASH_ENV
65- echo 'VERSION=$(cat setup.py| grep version | cut -c 20- | rev | cut -c 3- | rev)' >> $BASH_ENV
66- source $BASH_ENV
67- echo "Defined Vars: COMMIT_MESSAGE:$COMMIT_MESSAGE VERSION:$VERSION"
68-
69-
61+ - add_ssh_keys :
62+ fingerprints :
63+ - " 94:dc:75:8a:05:8e:b6:ef:bc:34:01:ed:7d:6b:86:ee"
7064 - when :
7165 condition :
7266 equal : [ circleci-project-setup, << pipeline.git.branch >> ]
7367 steps :
7468 - run :
7569 name : Bumpversion
7670 command : |
77- source $BASH_ENV
71+ bash ./.circleci/bumpversion.sh
7872 git config --global user.email "[email protected] " 7973 git config --global user.name "CircleCI Bumpversion"
8074 git config --global push.default simple
81- pip install bumpversion
82- if [[ $COMMIT_MESSAGE == *"[NV]"* ]] || [[ $COMMIT_MESSAGE == *"[DOC]"* ]];
83- then echo "No version update";
84- elif [[ $COMMIT_MESSAGE == *"[REL]"* ]];
85- then bumpversion --current-version $VERSION minor setup.py README.md docs/index.rst docs/conf.py cdt/__init__.py;
86- elif [[ $COMMIT_MESSAGE == *"[MREL]"* ]];
87- then bumpversion --current-version $VERSION major setup.py README.md docs/index.rst docs/conf.py cdt/__init__.py;
88- else bumpversion --current-version $VERSION patch setup.py README.md docs/index.rst docs/conf.py cdt/__init__.py;
89- fi
9075 git remote add deploy [email protected] :FenTechSolutions/CausalDiscoveryToolbox.git 9176 git add -u
9277 VERSION_NEW=$(cat setup.py| grep version | cut -c 20- | rev | cut -c 3- | rev)
@@ -169,6 +154,9 @@ jobs:
169154 steps :
170155 - checkout
171156 - setup_remote_docker
157+ - add_ssh_keys :
158+ fingerprints :
159+ - " 94:dc:75:8a:05:8e:b6:ef:bc:34:01:ed:7d:6b:86:ee"
172160 - when :
173161 condition :
174162 equal : [ circleci-project-setup, << pipeline.git.branch >> ]
0 commit comments