mirror of
https://github.com/wassname/talk.git
synced 2026-10-29 13:40:57 +08:00
fixed deploy script
This commit is contained in:
1 parent
e048491221
commit
4960b34748
1 file changed
+9
-10
+9
-10
@@ -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
|
||||
Reference in new issue
Block a user