Created
May 8, 2013 22:35
This file contains hidden or 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 | |
cd /path/to/fabfiles | |
branch=$(git rev-parse --symbolic --abbrev-ref $1) | |
if [ $branch = "dev" ] | |
then | |
/path/to/fabexec/bin/fab deploy_dev_fabfile | |
else | |
/path/to/fabexec/bin/fab deploy_prod_fabfile | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment