-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.json.dist
More file actions
90 lines (90 loc) · 2.11 KB
/
deploy.json.dist
File metadata and controls
90 lines (90 loc) · 2.11 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"deploy" : {
"master" : 'server1',
"dev" : ['server2'],
"deploy" : ['server3', 'server4']
},
"servers" : {
"server1" : {
"_type" : "Deploy/Server/Ftp",
"server" : "demodomain.com",
"port" : 21, // Optional
"username" : "demo",
"password" : "login",
"path" : "/path/on/remote"
},
"server2" : {
"_type" : "Deploy/Server/Sftp",
"_auth" : "password", // List(none, password, pubkey)
"server" : "demodomain.com",
"port" : 22, // Optional
"username" : "demo",
"password" : "login", // Required for _auth:password or _auth:pubkey as passphrase
"privkeyfile" : "/path/to/key" // Required for _auth:pubkey
},
"server3" : {
"_type" : "Deploy/Server/Group",
"servers" : [
{
"_type" : "Deploy/Server/Ftp",
"server" : "demodomain.com",
"port" : 21, // Optional
"username" : "demo",
"password" : "login",
"path" : "/path/on/remote"
},
{
"_type" : "Deploy/Server/Ftp",
"server" : "demodomain.com",
"port" : 21, // Optional
"username" : "demo",
"password" : "login",
"path" : "/path/on/remote"
}
]
},
"server4" : {
"_type" : "Deploy/Server/Group",
"servers" : [
{
"_type" : "Custom/Server/Api",
"optional" : "params",
},
{
"_type" : "Custom/Server/Db",
"optional" : "params",
}
]
},
"server5 : {
"_type" : "Deploy/Server/Group",
"servers" : [
"server1",
"server2",
"server3"
]
}
},
"events" : {
"post.upload" : [
{
"_type" : "Deploy/Listner/RemoteExecute",
"command" : "/usr/local/bin/php {{ path }}/cronjob/run.php cleancache --all"
}
],
"pre.upload" : [
{
"_type" : "Deploy/Listner/LocalExecute",
"_deploy" : "master",
"command" : "/do/somthing/local"
},
{
"_type" : "Deploy/Listner/MailZend",
"_server" : "default",
"to" : "cliff@obro.nl",
"subject" : "Er is een commit gedaan op branch {{ branch }}",
"bericht" : "Iemand heeft een commit gedaan voor {{ server }} {{ branch }} {{ old }} {{ new }}"
}
]
}
}