|
@ -72,6 +72,7 @@ HEAD=`git log --color=never |head -1|sed 's/.*commit //'` |
|
|
|
|
|
|
|
|
push_test: |
|
|
push_test: |
|
|
@echo "Checking out commited HEAD (${HEAD}) state at ${TEST_SSH} ..." |
|
|
@echo "Checking out commited HEAD (${HEAD}) state at ${TEST_SSH} ..." |
|
|
|
|
|
git tag deploy-test-`date +%Y-%m-%d-%H-%M`-${USER} |
|
|
git push --all |
|
|
git push --all |
|
|
ssh ${TEST_USER}@${TEST_SERVER} -n -x "\
|
|
|
ssh ${TEST_USER}@${TEST_SERVER} -n -x "\
|
|
|
cd ${TEST_DIR} && \
|
|
|
cd ${TEST_DIR} && \
|
|
@ -89,6 +90,7 @@ push_test: |
|
|
|
|
|
|
|
|
push_prod: |
|
|
push_prod: |
|
|
@echo "Checking out commited HEAD (${HEAD}) state at ${PROD_SSH} ..." |
|
|
@echo "Checking out commited HEAD (${HEAD}) state at ${PROD_SSH} ..." |
|
|
|
|
|
git tag deploy-prod-`date +%Y-%m-%d-%H-%M`-${USER} |
|
|
git push --all |
|
|
git push --all |
|
|
ssh ${PROD_USER}@${PROD_SERVER} -n -x "\
|
|
|
ssh ${PROD_USER}@${PROD_SERVER} -n -x "\
|
|
|
cd ${PROD_DIR} && \
|
|
|
cd ${PROD_DIR} && \
|
|
|