-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrepositories.js
More file actions
70 lines (67 loc) · 1.67 KB
/
repositories.js
File metadata and controls
70 lines (67 loc) · 1.67 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
/**
* Repositories
*/
const path = require("path");
const {
WAVE_SECRET,
TURTLE_SECRET,
SHELL_SECRET,
ANCHOR_SECRET,
HOOKS_SECRET,
SUNRISE_SECRET,
PRE_REGISTRATION_SECRET,
SHELL_2018_SECRET,
SHELL_2017_SECRET
} = process.env;
const pull = "git pull";
const build = "yarn build";
const update = "yarn"; // update dependencies
const restart = "yarn restart";
const reload = "systemctl reload nginx";
module.exports = [
{
path: path.resolve(__dirname, "../Waves"),
secret: WAVE_SECRET,
commands: `${pull} && ${update} && ${build} && ${restart}`
},
{
path: path.resolve(__dirname, "../Turtle"),
secret: TURTLE_SECRET,
commands: `${pull} && ${update} && ${restart}`
},
{
path: path.resolve(__dirname, "../Shell"),
secret: SHELL_SECRET,
commands: `${pull} && ${update} && ${restart}`
},
{
path: path.resolve(__dirname, "../Anchor"),
secret: ANCHOR_SECRET,
commands: `${pull} && ${update} && ${build} && ${reload}`
},
{
path: path.resolve(__dirname, "../Sunrise"),
secret: SUNRISE_SECRET,
commands: `${pull} && ${update} && ${build} && ${reload}`
},
{
path: path.resolve(__dirname),
secret: HOOKS_SECRET,
commands: `${pull} && ${update} && ${restart}`
},
{
path: path.resolve(__dirname, "../Shell-Pre-registration-2019"),
secret: PRE_REGISTRATION_SECRET,
commands: pull
},
{
path: path.resolve(__dirname, "../shellhacks-2018"),
secret: SHELL_2018_SECRET,
commands: pull
},
{
path: path.resolve(__dirname, "../shellhacks-2017"),
secret: SHELL_2017_SECRET,
commands: pull
}
];