Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalyliber committed Nov 22, 2019
1 parent a346095 commit bf8bf11
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@ ssh-keyscan -t rsa $HOST >> "$SSH_PATH/known_hosts"

git checkout $DEPLOY_BRANCH

echo "Checking the project locked state"

until ssh dokku@$HOST "apps:locked ${PROJECT}" 2>&1 | grep -q "does not exist"
do
echo "Project is locked"
sleep 3
done

echo "The deploy is starting"

GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p ${PORT-22}" git push dokku@$HOST:$PROJECT $DEPLOY_BRANCH:master

0 comments on commit bf8bf11

Please sign in to comment.