source: tools/dev/push.sh @ b3287a8

cremcrem2devdev2diademsdj1.6feature/breadcrumbsfeature/ts-0.5feature/ts-0.5.4feature/writecacheformagenericinstru_searchlamlam2mapsv3mergenlivemultiproductionrelease/1.4.4sabiodsecurityserversocialstoragetelecastertest
Last change on this file since b3287a8 was b3287a8, checked in by yomguy <yomguy@…>, 3 years ago

tag 1.4.2

  • Property mode set to 100755
File size: 1.0 KB
Line 
1#!/bin/bash
2
3git branch | tr -d \* | while read line
4do
5    branch=${line/#\ }
6
7    echo "Push $branch to origin:"
8    git push origin $branch
9
10    echo "Push $branch to web:"
11    git push web $branch
12
13    if [[ $branch == *master* ]]; then
14        echo "Push $branch to github:"
15        git push github $branch
16    fi
17
18done
19
20git push --tags
21git push --tags web
22git push --tags github
23
24ssh vcs.parisson.com "cd /var/git/telemeta.git; git update-server-info"
25ssh vcs.parisson.org "cd /var/git/telemeta.git; git update-server-info"
26
27#echo "Update jimi.parisson.com:"
28#ssh jimi.parisson.com "cd /home/telemeta/telemeta; git pull origin production"
29echo "Update angus.parisson.com:"
30ssh angus.parisson.com "cd /home/telemeta/telemeta-prod; git pull origin production; \
31                        cd /home/telemeta/telemeta; git pull origin master; \
32                        cd /home/telemeta/demo/; ./manage.py migrate telemeta --delete-ghost-migrations;
33                        cd /home/telemeta/sandbox/; ./manage.py migrate telemeta --delete-ghost-migrations; "
34
35echo "Done !"
Note: See TracBrowser for help on using the repository browser.