Created
December 17, 2014 20:55
-
-
Save yaf/e2d9ff6619cb837e3115 to your computer and use it in GitHub Desktop.
A base deploy script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
APPNAME="my_app" | |
BRANCH=`git rev-parse --abbrev-ref HEAD` | |
DESTINATION="git@appsdeck.eu:$APPNAME-$BRANCH.git" | |
echo "*** deploy $APPNAME to $DESTINATION" | |
git pull origin $BRANCH && \ | |
git push origin $BRANCH && \ | |
echo "git push $DESTINATION $BRANCH:master" && \ | |
git push $DESTINATION $BRANCH:master | |
echo "*** end deploy $APPNAME to $DESTINATION" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment