forked from MCERQUA/OpenVoiceUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.js
More file actions
37 lines (34 loc) · 820 Bytes
/
Copy pathupdate.js
File metadata and controls
37 lines (34 loc) · 820 Bytes
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
module.exports = {
run: [
// Stop running containers
{
method: "shell.run",
params: {
message: "docker compose -f docker-compose.yml -f docker-compose.local.yml down",
},
},
// Pull latest code and record the exact git SHA for registry check-in
{
method: "shell.run",
params: {
message: [
"git pull",
"git rev-parse HEAD > GIT_HASH",
],
},
},
// Rebuild images with latest changes (GIT_HASH baked in for check-in)
{
method: "shell.run",
params: {
message: "docker compose -f docker-compose.yml -f docker-compose.local.yml build",
},
},
{
method: "notify",
params: {
html: "OpenVoiceUI updated! Click <b>Start</b> to launch.",
},
},
],
}