-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.toml
More file actions
115 lines (101 loc) · 2.54 KB
/
main.toml
File metadata and controls
115 lines (101 loc) · 2.54 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
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
#####################
# local server config
#####################
[[server]]
name = "Local"
tags = ["syncs"]
[server.config]
address = "https://komodo-periphery:8120"
region = "us-west-1"
enabled = true
[[builder]]
name = "Local"
tags = ["syncs"]
[builder.config]
type = "Server"
params.server_id = "Local"
####################
# default procedures
####################
[[procedure]]
name = "Backup Core Database"
description = "Triggers the Core database backup at the scheduled time."
tags = ["system"]
config.schedule = "Every day at 01:00"
[[procedure.config.stage]]
name = "Stage 1"
enabled = true
executions = [
{ execution.type = "BackupCoreDatabase", execution.params = {}, enabled = true },
]
[[procedure]]
name = "Global Auto Update"
description = "Pulls and auto updates Stacks and Deployments using 'poll_for_updates' or 'auto_update'."
tags = ["system"]
config.schedule = "Every day at 03:00"
[[procedure.config.stage]]
name = "Stage 1"
enabled = true
executions = [
{ execution.type = "GlobalAutoUpdate", execution.params = {}, enabled = true },
]
####################
# repos
####################
[[repo]]
name = "komodo-syncs"
description = "Monorepo for Komodo syncs"
tags = ["syncs"]
[repo.config]
server_id = "Local"
repo = "benkoppe/komodo-syncs"
git_account = "benkoppe"
on_pull.path = "."
on_pull.command = """
chmod +x ./docker-sops.sh
find . -name '*local.env' -exec ./docker-sops.sh -i --decrypt {} \\;
"""
[[repo]]
name = "trak-backend"
tags = ["syncs"]
[repo.config]
server_id = "Local"
repo = "benkoppe/bear-trak-backend"
git_account = "benkoppe"
####################
# syncs
####################
# main
[[resource_sync]]
name = "komodo-main"
tags = ["syncs"]
[resource_sync.config]
resource_path = ["main.toml", "stacks", "servers"]
linked_repo = "komodo-syncs"
delete = true
match_tags = ["syncs"]
####################
# update procedure
####################
[[procedure]]
name = "Webhook Syncs Update"
tags = ["syncs"]
[[procedure.config.stage]]
name = "Pull Syncs"
enabled = true
executions = [
{ execution.type = "PullRepo", execution.params.repo = "komodo-syncs", enabled = true },
{ execution.type = "PullRepo", execution.params.repo = "komodo-syncs-bird", enabled = true },
]
[[procedure.config.stage]]
name = "Update Main Sync"
enabled = true
executions = [
{ execution.type = "RunSync", execution.params.sync = "komodo-main", enabled = true },
]
[[procedure.config.stage]]
name = "Update all Deploys"
enabled = true
executions = [
{ execution.type = "BatchDeployStackIfChanged", execution.params.pattern = "*", enabled = true },
]