-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpush_prod.sh
More file actions
executable file
·35 lines (28 loc) · 1 KB
/
push_prod.sh
File metadata and controls
executable file
·35 lines (28 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env bash
. deploy-tools/installer/installer.sh
version="$(echo -n "Source version: " && cat version)"
print_message $version
print_message "Last tags:"
git tag | sort -Vr | head -n 5
gh_lesh="git@github.com:lesh-dev/core.git"
vm_root="ssh://fizlesh.ru//srv/git"
bb_root="ssh://hg@bitbucket.org/dichlofos"
print_message "Pushing to github..."
print_message " [repo] lesh..."
git push $gh_lesh
print_message " [tags] lesh..."
git push --tags $gh_lesh
print_message " [repo] deploy-tools"
(cd deploy-tools && hg push $bb_root/deploy-tools )
print_message " [repo] xengine"
(cd site/xengine && hg push $bb_root/xengine )
print_message "Pushing to fizlesh.ru..."
print_message " [repo] lesh..."
git push $vm_root/lesh
print_message " [tags] lesh..."
git push --tags $vm_root/lesh
print_message " [repo] deploy-tools"
( cd site/xengine && hg push $vm_root/xengine )
print_message " [repo] xengine"
( cd deploy-tools && hg push $vm_root/deploy-tools )
print_message "Everything completed"