-
Notifications
You must be signed in to change notification settings - Fork 2
/
marmdeployment.conf.php
117 lines (112 loc) · 3.94 KB
/
marmdeployment.conf.php
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
/**
* Configuration example
*
* @author Joscha Krug<krug@marmalade.de>
*/
// dir = path to module relative to marmdeployment.config.php
// ref = a position in git. Could be a hash, a branch or a tag
// remote = the remote of the git repo. Will be used to initialize the repo if it dousnt exist yet.
$config = array(
'dev' => array(
'modules' => array(
'solr' => array(
'dir' => 'modules/marm/solr',
'ref' => 'master',
'remote' => 'ssh://git@paula.marmalade.de/marmsolr.git'
),
'libreka' => array(
'dir' => 'modules/marm/libreka',
'ref' => 'master',
'remote' => 'ssh://git@paula.marmalade.de/marmlibreka.git'
),
'picturesubdir' => array(
'dir' => 'modules/marm/picturesubdirs',
'ref' => 'master',
'remote' => 'ssh://git@paula.marmalade.de/marmpicturesubdirs.git'
),
//Yes! Cool stuff! Script will update itself!
'marmdeployment' => array(
'dir' => 'marmdeployment',
'ref' => 'stable',
'remote' => 'ssh://git@paula.marmalade.de/marmdeployment.git'
),
),
'project' => array(
'ref' => 'master',
'remote' => 'ssh://git@paula.marmalade.de/project.git'
),
),
'staging' =>array(
'modules' => array(
'solr' => array(
'dir' => 'modules/marm/solr',
'ref' => 'test',
'remote' => 'ssh://git@paula.marmalade.de/marmsolr.git'
),
'libreka' => array(
'dir' => 'modules/marm/libreka',
'ref' => 'test',
'remote' => 'ssh://git@paula.marmalade.de/marmlibreka.git'
),
'picturesubdir' => array(
'dir' => 'modules/marm/picturesubdirs',
'ref' => 'test',
'remote' => 'ssh://git@paula.marmalade.de/marmpicturesubdirs.git'
),
//Yes! Cool stuff! Script will update itself!
'marmdeployment' => array(
'dir' => 'marmdeployment',
'ref' => 'stable',
'remote' => 'ssh://git@paula.marmalade.de/marmdeployment.git'
),
),
'project' => array(
'ref' => 'test',
'remote' => 'ssh://git@paula.marmalade.de/project.git'
),
),
'live' =>array(
'modules' => array(
'solr' => array(
'dir' => 'modules/marm/solr',
'ref' => 'stable',
'remote' => 'ssh://git@paula.marmalade.de/marmsolr.git'
),
'libreka' => array(
'dir' => 'modules/marm/libreka',
'ref' => 'stable',
'remote' => 'ssh://git@paula.marmalade.de/marmlibreka.git'
),
'picturesubdir' => array(
'dir' => 'modules/marm/picturesubdirs',
'ref' => 'stable',
'remote' => 'ssh://git@paula.marmalade.de/marmpicturesubdirs.git'
),
//Yes! Cool stuff! Script will update itself!
'marmdeployment' => array(
'dir' => 'marmdeployment',
'ref' => 'stable',
'remote' => 'ssh://git@paula.marmalade.de/marmdeployment.git'
),
),
'project' => array(
'ref' => 'stable',
'remote' => 'ssh://git@paula.marmalade.de/project.git'
),
)
);
/**
* With these function you could perform own code before the update
*/
function before_run_hook()
{
echo "Action before run";
}
/**
* With these function you could perform own code after the update
*/
function after_run_hook()
{
echo "Action after run";
}