mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
poor man's retry
This commit is contained in:
@@ -13,5 +13,9 @@ git commit -m 'initial commit'
|
||||
REPO="test-$(basename $APP)-$RANDOM"
|
||||
git remote add target git@$TARGET:$REPO
|
||||
git push target master
|
||||
URL=$(ssh dokku@$TARGET url $REPO)
|
||||
sleep 2
|
||||
./check_deploy "$(ssh dokku@$TARGET url $REPO)" && echo "-----> Deploy success!"
|
||||
./check_deploy $URL && echo "-----> Deploy success!" || {
|
||||
sleep 4
|
||||
./check_deploy $URL && echo "-----> Deploy success!"
|
||||
}
|
||||
Reference in New Issue
Block a user