mirror of
https://github.com/wassname/talk.git
synced 2026-07-04 07:01:55 +08:00
Merge pull request #1293 from coralproject/deploy-script
Fixed deploy script
This commit is contained in:
+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