Skip to content

Instantly share code, notes, and snippets.

@yaf
Created December 17, 2014 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaf/e2d9ff6619cb837e3115 to your computer and use it in GitHub Desktop.
Save yaf/e2d9ff6619cb837e3115 to your computer and use it in GitHub Desktop.
A base deploy script
#!/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