fixed deploy script

This commit is contained in:
Wyatt Johnson
2018-01-17 14:56:36 -07:00
parent e048491221
commit 4960b34748
+9 -10
View File
@@ -68,17 +68,16 @@ then
docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
fi
if [ "$CIRCLE_BRANCH" = "master" ]
# deploy based on the env
if [ -n "$CIRCLE_TAG" ]
then
# deploy based on the env
if [ -n "$CIRCLE_TAG" ]
then
deploy_tag
else
deploy_latest
fi
deploy_tag
else
deploy_branch
if [ "$CIRCLE_BRANCH" = "master" ]
then
deploy_latest
else
deploy_branch
fi
fi
fi