-
Notifications
You must be signed in to change notification settings - Fork 39
/
local-subtrees-push.sh.sample
executable file
·50 lines (37 loc) · 1.74 KB
/
local-subtrees-push.sh.sample
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh
# change this file to make manual subtree pushes
#ssh-keyscan -t rsa ${SUBTREE_PUSH_DOMAIN} >> "${HOME}/.ssh/known_hosts"
$CATARSE_JS_SUBTREE_REMOTE=""
$CATARSE_SUBTREE_REMOTE=""
$COMMON_API_SUBTREE_REMOTE=""
$SERVICE_CORE_DB_SUBTREE_REMOTE=""
$PROXY_SUBTREE_REMOTE=""
$HOOK_SERVICE_SUBTREE_REMOTE=""
$NOTIFICATION_SERVICE_SUBTREE_REMOTE=""
$PAYMENT_SERVICE_SUBTREE_REMOTE=""
$SUBTREE_BRANCH=""
git remote add catarse.js $CATARSE_JS_SUBTREE_REMOTE
git remote add catarse $CATARSE_SUBTREE_REMOTE
git remote add common-api $COMMON_API_SUBTREE_REMOTE
git remote add service-core-db $SERVICE_CORE_DB_SUBTREE_REMOTE
git remote add proxy $PROXY_SUBTREE_REMOTE
git remote add hook-service-api $HOOK_SERVICE_SUBTREE_REMOTE
git remote add notification-service-api $NOTIFICATION_SERVICE_SUBTREE_REMOTE
git remote add payment-service-api $PAYMENT_SERVICE_SUBTREE_REMOTE
set -e
echo 'pushing catarse.js...'
git subtree push --prefix=services/catarse.js catarse.js $SUBTREE_BRANCH
echo 'pushing catarse...'
git subtree push --prefix=services/catarse catarse $SUBTREE_BRANCH
echo 'pushing service-core-db...'
git subtree push --prefix=services/service-core-db service-core-db $SUBTREE_BRANCH
echo 'pushing common-api...'
git subtree push --prefix=services/common-api common-api $SUBTREE_BRANCH
echo 'pushing proxy...'
git subtree push --prefix=services/proxy proxy $SUBTREE_BRANCH
echo 'pushing hook-service-api...'
git subtree push --prefix=services/hook-service-api hook-service-api $SUBTREE_BRANCH
echo 'pushing notification-service-api...'
git subtree push --prefix=services/notification-service-api notification-service-api $SUBTREE_BRANCH
echo 'pushing payment-service-api...'
git subtree push --prefix=services/payment-service-api payment-service-api $SUBTREE_BRANCH