Created
May 8, 2013 22:40
-
-
Save Jd007/5544238 to your computer and use it in GitHub Desktop.
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 | |
echo | |
echo "Executing Fabric deploy command" | |
echo | |
branch=$(git rev-parse --symbolic --abbrev-ref $1) | |
if [ $branch = "dev" ] | |
then | |
echo "Dev branch detected" | |
/path/to/fabexec/bin/fab -f /path/to/fabfile.py deploy_dev_function | |
fi | |
if [ $branch = "master" ] | |
then | |
echo "Master branch detected" | |
/path/to/fabexec/bin/fab -f /path/to/fabfile.py deploy_prod_function | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment