This commit is contained in:
Sergey Bogatyrets 2017-04-25 00:24:21 +03:00
parent e3f7a71ac3
commit 8bb8cf279b

View File

@ -22,7 +22,8 @@ jobs:
- deploy: - deploy:
command: | command: |
docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASSWORD docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASSWORD
if [ $CIRCLE_TAG -ne "undefined" ]; then if [ $CIRCLE_TAG -ne "undefined" ];
then
docker tag serjs/go-socks5-proxy serjs/go-socks5-proxy:$CIRCLE_TAG docker tag serjs/go-socks5-proxy serjs/go-socks5-proxy:$CIRCLE_TAG
docker push serjs/go-socks5-proxy:$CIRCLE_TAG docker push serjs/go-socks5-proxy:$CIRCLE_TAG
else else