-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCaddyfile
52 lines (47 loc) · 1.6 KB
/
Caddyfile
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
51
52
:80 {
bind 0.0.0.0
gzip
root www.threefold.io/en
git {
repo ssh://[email protected]:7022/threefold/community_data.git
branch master
hook /gitea/pull/community_data "zU3687$aJEb6"
key ~/.ssh/id_rsa
path ../../../community_data
then rm -rf ../www_threefold.io/www.threefold.io/en/
then python3 community.py
then hugo -s ../www_threefold.io/www.threefold.io
}
git {
repo ssh://[email protected]:7022/threefold/data_team.git
branch master
hook /gitea/pull/tf_data_team "zU3687$aJEb6"
key ~/.ssh/id_rsa
path ../../../threefold/data_team/
then python3 process.py www_threefold.io/www.threefold.io
then git reset --hard HEAD
then git -C "../../bettertoken/data_team" reset --hard HEAD
then hugo -s ../../www_threefold.io/www.threefold.io
}
git {
repo ssh://[email protected]:7022/bettertoken/data_team.git
branch master
hook /gitea/pull/bt_data_team "zU3687$aJEb6"
key ~/.ssh/id_rsa
path ../../../bettertoken/data_team/
then python3 ../../threefold/data_team/process.py www_threefold.io/www.threefold.io
then git reset --hard HEAD
then git -C "../../threefold/data_team" reset --hard HEAD
then hugo -s ../../www_threefold.io/www.threefold.io
}
git {
repo https://github.com/threefoldfoundation/www_threefold.io.git
branch master
hook /webhook "zU3687$aJEb6"
path ../..
then hugo -s www.threefold.io
}
errors {
404 404.html # Not Found
}
}