-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwikip-content-public-cicd.yaml
More file actions
205 lines (205 loc) · 4.26 KB
/
wikip-content-public-cicd.yaml
File metadata and controls
205 lines (205 loc) · 4.26 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
title: Wikip.co Shared Content CI/CD
direction: LR
canvas:
width: 1800
height: 980
graph_attr:
ranksep: "1.1"
nodesep: "0.9"
pad: "0.5"
clusters:
- id: content
label: "wikip-co/content"
x: 40
y: 80
width: 520
height: 820
graph_attr:
bgcolor: "#f2f8f2"
color: "#7aa874"
- id: site
label: "wikip-co/wikip.co"
x: 620
y: 80
width: 820
height: 820
graph_attr:
bgcolor: "#f4f7fb"
color: "#6d8fb3"
- id: public
label: "wikip-co/public"
x: 1500
y: 320
width: 240
height: 220
graph_attr:
bgcolor: "#fbf7ef"
color: "#b6954d"
nodes:
- id: content_repo
label: "Markdown content\nrepo"
icon: onprem.github
cluster: content
x: 120
y: 180
attrs:
color: "#2f6f44"
fontcolor: "#2f6f44"
- id: trigger_sites
label: "Trigger Site Rebuilds\ntrigger-sites.yml"
icon: onprem.githubactions
cluster: content
x: 120
y: 420
attrs:
color: "#2f6f44"
fontcolor: "#2f6f44"
- id: reusable_deploy
label: "Reusable deploy workflow\nhexo-deploy.yml"
icon: onprem.githubactions
cluster: content
x: 120
y: 660
attrs:
color: "#2f6f44"
fontcolor: "#2f6f44"
- id: site_repo
label: "Site repo\nHexo config, themes,\nworkflows"
icon: onprem.github
cluster: site
x: 720
y: 180
attrs:
color: "#335d8a"
fontcolor: "#335d8a"
- id: generator
label: "Generate Site\ngenerator.yml"
icon: onprem.githubactions
cluster: site
x: 1030
y: 180
attrs:
color: "#335d8a"
fontcolor: "#335d8a"
- id: content_submodule
label: "site/source/_posts\ncontent submodule"
icon: onprem.github
cluster: site
x: 720
y: 480
attrs:
color: "#335d8a"
fontcolor: "#335d8a"
- id: public_submodule
label: "public\noutput submodule"
icon: onprem.github
cluster: site
x: 1340
y: 480
attrs:
color: "#335d8a"
fontcolor: "#335d8a"
- id: hexo_build
label: "npm ci + Hexo build"
icon: onprem.githubactions
cluster: site
x: 1030
y: 480
attrs:
color: "#335d8a"
fontcolor: "#335d8a"
- id: public_repo
label: "Published static\nsite repo"
icon: onprem.github
cluster: public
x: 1570
y: 370
attrs:
color: "#8a6b20"
fontcolor: "#8a6b20"
edges:
- from: content_repo
to: trigger_sites
label: "push main\n**/*.md"
label_x: 200
label_y: 330
color: "#2f6f44"
- from: content_repo
to: content_submodule
label: "submodule origin"
label_x: 450
label_y: 330
color: "#2f6f44"
style: dashed
- from: content_repo
to: reusable_deploy
label: "workflow source"
label_x: 430
label_y: 640
color: "#2f6f44"
style: dashed
- from: trigger_sites
to: generator
label: "repository_dispatch\ncontent_ref + content_sha"
label_x: 650
label_y: 330
color: "#2f6f44"
penwidth: "2.0"
- from: site_repo
to: generator
label: "push main\nsite/**"
label_x: 880
label_y: 150
color: "#335d8a"
- from: generator
to: reusable_deploy
label: "uses cross-repo reusable workflow"
label_x: 760
label_y: 520
color: "#335d8a"
penwidth: "2.0"
- from: reusable_deploy
to: content_submodule
label: "checkout exact content SHA"
label_x: 620
label_y: 710
color: "#335d8a"
- from: reusable_deploy
to: hexo_build
label: "npm ci + build against content@main workflow"
label_x: 845
label_y: 560
color: "#2f6f44"
- from: site_repo
to: public_submodule
label: "git submodule"
label_x: 1180
label_y: 330
color: "#335d8a"
style: dashed
- from: site_repo
to: hexo_build
label: "site package-lock,\nconfig, theme code"
label_x: 870
label_y: 330
color: "#335d8a"
- from: content_submodule
to: hexo_build
label: "markdown posts"
label_x: 875
label_y: 450
color: "#335d8a"
- from: hexo_build
to: public_submodule
label: "write generated site"
label_x: 1180
label_y: 450
color: "#335d8a"
penwidth: "2.0"
- from: public_submodule
to: public_repo
label: "commit + push main"
label_x: 1490
label_y: 450
color: "#8a6b20"
penwidth: "2.0"