-
Notifications
You must be signed in to change notification settings - Fork 0
/
makescript.js
60 lines (60 loc) · 1.52 KB
/
makescript.js
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
module.exports = {
password: '$2b$10$Qqz.Lqa1WwtvdFXgHM3pAu/sbzwpKo94zUCYwMiipDJZq.67QB/wW',
hooks: {
install: 'echo "This will run while scripts repo cloned."',
postscript: 'sh ./example-scripts/post-trigger-hook.sh',
},
scripts: [
{
displayName: 'Echo Message',
name: 'echo-message',
type: 'node',
module: 'example-scripts/echo-message.js',
parameters: {message: true},
manual: false,
},
{
displayName: 'Echo Message (Shell)',
name: 'echo-message-shell',
type: 'shell',
command: 'echo $message',
parameters: {message: true},
manual: false,
},
{
displayName: 'Generate Resources',
name: 'generate-resources',
type: 'process',
command: 'example-scripts/generate-resources.sh',
parameters: {
text: {
displayName: 'Text',
required: true,
},
},
manual: true,
},
{
displayName: 'Operate Sqlite',
name: 'operate-sqlite',
type: 'sqlite',
file: 'example-scripts/operate-sqlite.sql',
parameters: {
message: {
displayName: 'Message',
required: true,
},
},
manual: true,
db: {
path: '/tmp/database.sqlite3',
password: process.env['SQLITE_PASSWORD'],
},
password: '$2b$10$WTept7/7AbSZ4hL0mBo92OK9hn6criSZ9bUjSxI4TyueV8BT3DEJ2',
hooks: {
postscript:
'sh example-scripts/post-trigger-hook-for-a-single-script.sh',
},
},
],
};