mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 08:42:13 +02:00
Compare commits
605 Commits
monitor-bo
...
ts-migrate
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dbb68b6495 | ||
|
|
9269606c76 | ||
|
|
f08cbf0568 | ||
|
|
11d95ff118 | ||
|
|
afe96bd311 | ||
|
|
381cb83849 | ||
|
|
71ed469862 | ||
|
|
317cc09d75 | ||
|
|
780087f3d2 | ||
|
|
b2328a382a | ||
|
|
d99b91f67e | ||
|
|
94a38761f6 | ||
|
|
0e72bc6369 | ||
|
|
01dc1760b2 | ||
|
|
108ac0b413 | ||
|
|
63cc4732a6 | ||
|
|
23c5a0f706 | ||
|
|
c95d87493d | ||
|
|
3dc51cf388 | ||
|
|
e50c0bca61 | ||
|
|
c2bcaacf93 | ||
|
|
ad265d1069 | ||
|
|
705f2a34e4 | ||
|
|
ac8f187dd3 | ||
|
|
7a300b5b69 | ||
|
|
0808625fcc | ||
|
|
02f6c10b04 | ||
|
|
0c0a5af895 | ||
|
|
7e2c8dce4f | ||
|
|
1b76121334 | ||
|
|
e5b1beb731 | ||
|
|
4f39e3f5c2 | ||
|
|
262a9a0c12 | ||
|
|
c2a7b4afea | ||
|
|
b15877f666 | ||
|
|
59bea49dd8 | ||
|
|
fccb1a837b | ||
|
|
e04762191c | ||
|
|
5992dd6b04 | ||
|
|
c220931fe5 | ||
|
|
843d2a2e62 | ||
|
|
cfaa339332 | ||
|
|
4592d54616 | ||
|
|
a1c631d01c | ||
|
|
78bd51ad3a | ||
|
|
cbb1300338 | ||
|
|
30ef840874 | ||
|
|
9ef1b71002 | ||
|
|
87028dc664 | ||
|
|
8523b5451a | ||
|
|
2db63d29ae | ||
|
|
48c2c853f6 | ||
|
|
c98a055780 | ||
|
|
d777dce4ad | ||
|
|
964f3c2130 | ||
|
|
077f212acf | ||
|
|
6e76f977c0 | ||
|
|
d67c9c1a4a | ||
|
|
83ef9a9a2d | ||
|
|
6d063df163 | ||
|
|
15bedb021b | ||
|
|
339d06f4e8 | ||
|
|
ff0911fc03 | ||
|
|
e97aeb209a | ||
|
|
b750e514ad | ||
|
|
48d25247a0 | ||
|
|
3aa455876f | ||
|
|
357ffbfa35 | ||
|
|
6d086f7594 | ||
|
|
13225ed2ca | ||
|
|
534d8bba1b | ||
|
|
112e1d1e93 | ||
|
|
dd009cf193 | ||
|
|
de9222ef77 | ||
|
|
1ed1bc49aa | ||
|
|
55999da87a | ||
|
|
7ad52dc0a0 | ||
|
|
0ba6cc3bd5 | ||
|
|
13306dec36 | ||
|
|
c4591531e4 | ||
|
|
be02a2a608 | ||
|
|
4a2b10e02d | ||
|
|
32d17f7e94 | ||
|
|
4e01ec908f | ||
|
|
08082d0210 | ||
|
|
1629f92e50 | ||
|
|
92238524d6 | ||
|
|
f059f9b0a6 | ||
|
|
3bdad183fa | ||
|
|
f283025f94 | ||
|
|
796ce03da0 | ||
|
|
b4ef65ab57 | ||
|
|
e727fdb981 | ||
|
|
c7f8fb3022 | ||
|
|
97593aa68a | ||
|
|
00657d5eff | ||
|
|
916e8989cc | ||
|
|
40f9633d44 | ||
|
|
40fd6d5930 | ||
|
|
053507acd2 | ||
|
|
e63f47a342 | ||
|
|
8ee64cade9 | ||
|
|
e83889b9f7 | ||
|
|
1838321e59 | ||
|
|
af298a39e4 | ||
|
|
9a27fcf894 | ||
|
|
c65acc2838 | ||
|
|
b111095697 | ||
|
|
ec2fde676b | ||
|
|
91ecd4cf09 | ||
|
|
38536a2ff8 | ||
|
|
c55a6c1ce2 | ||
|
|
550e5673b7 | ||
|
|
3fcff7d37b | ||
|
|
2e1cb32072 | ||
|
|
6b8b7dee76 | ||
|
|
60f765ddad | ||
|
|
99ec8803f8 | ||
|
|
107616744c | ||
|
|
8fe2dd2513 | ||
|
|
f1f11b8313 | ||
|
|
c903ce838b | ||
|
|
ef7118699b | ||
|
|
6bd41f82d6 | ||
|
|
ff57846d58 | ||
|
|
c67bc41cf6 | ||
|
|
2e6574a47b | ||
|
|
e4514ae16a | ||
|
|
634ffb0a6e | ||
|
|
aa33753768 | ||
|
|
1467894195 | ||
|
|
d547938030 | ||
|
|
75c41c07fd | ||
|
|
a96c3e4b43 | ||
|
|
710018c1a5 | ||
|
|
d78bfefca4 | ||
|
|
5d22287b29 | ||
|
|
45ae40b5c2 | ||
|
|
d0d1359528 | ||
|
|
eccb8c430d | ||
|
|
babf72e7b9 | ||
|
|
1a1ab1eaeb | ||
|
|
c04f5d51df | ||
|
|
1a81499cfa | ||
|
|
407ee62e36 | ||
|
|
e8a116f3b0 | ||
|
|
173337cdb5 | ||
|
|
c4302f5d6f | ||
|
|
8f65af37c5 | ||
|
|
822741e215 | ||
|
|
a981683d81 | ||
|
|
0ebca38ab0 | ||
|
|
03aeb6f9f2 | ||
|
|
58945f918e | ||
|
|
46b2ce2566 | ||
|
|
d378c9b50b | ||
|
|
c835490d25 | ||
|
|
5c307a54c1 | ||
|
|
dfaf4c57fe | ||
|
|
6baf9f484e | ||
|
|
585b7a2f8a | ||
|
|
d516c3c194 | ||
|
|
6cd19db9e6 | ||
|
|
33c3874a15 | ||
|
|
6070005850 | ||
|
|
e99d654edd | ||
|
|
d20844c91b | ||
|
|
288776d20c | ||
|
|
8b9955fd31 | ||
|
|
9854c4f2fc | ||
|
|
e8b39da1f0 | ||
|
|
b60ebed812 | ||
|
|
53a3d3e29d | ||
|
|
e5c2c17a33 | ||
|
|
06dbfe6dc5 | ||
|
|
a98cbf0c09 | ||
|
|
68950946a4 | ||
|
|
62f5e68a94 | ||
|
|
bbf57ba7ba | ||
|
|
ea5d12eafa | ||
|
|
4a4eba024e | ||
|
|
910595f93e | ||
|
|
7086511590 | ||
|
|
38e35302f5 | ||
|
|
20d45f5152 | ||
|
|
22c18fc8a2 | ||
|
|
63f8c2485e | ||
|
|
12e20167be | ||
|
|
f50e3fd575 | ||
|
|
1d47c29b13 | ||
|
|
569b32cbe4 | ||
|
|
679f75ca65 | ||
|
|
2d0c1532b9 | ||
|
|
49ee21739e | ||
|
|
6ad8491237 | ||
|
|
8f7c337e05 | ||
|
|
27ceacf156 | ||
|
|
7307cf31f6 | ||
|
|
af12ce1f33 | ||
|
|
b28f7166ba | ||
|
|
c2b7b17835 | ||
|
|
df4901a4d7 | ||
|
|
67a3853425 | ||
|
|
6d2b3af74e | ||
|
|
0b726d613f | ||
|
|
7a280c25dc | ||
|
|
41d88e81bc | ||
|
|
f68a5318a6 | ||
|
|
6dff804e80 | ||
|
|
a059963695 | ||
|
|
6db9dd484d | ||
|
|
117826ec44 | ||
|
|
e2b5eaa5f4 | ||
|
|
86757ed71c | ||
|
|
33ded33eba | ||
|
|
3a890e81cf | ||
|
|
8aa80ae392 | ||
|
|
1ba35d967c | ||
|
|
eb1774190f | ||
|
|
ad92fb8b40 | ||
|
|
8dfea2c145 | ||
|
|
11cf5beb2f | ||
|
|
480ed83e1a | ||
|
|
6538eba839 | ||
|
|
e5b855e1ba | ||
|
|
066399ffc5 | ||
|
|
eb5b06d31e | ||
|
|
75a2a99be8 | ||
|
|
bb6dcf6885 | ||
|
|
b52fdee322 | ||
|
|
e1f2a44143 | ||
|
|
40e3d2a7d4 | ||
|
|
8db8a505d7 | ||
|
|
2b77b09062 | ||
|
|
4a15e7e89e | ||
|
|
6844867eea | ||
|
|
d5e17e72a6 | ||
|
|
1eb9c5e692 | ||
|
|
fed6753cde | ||
|
|
4fb1d3fac6 | ||
|
|
6f0cc9c53d | ||
|
|
354d53157f | ||
|
|
1b08d42cc5 | ||
|
|
6ec11a3050 | ||
|
|
80c5cb5596 | ||
|
|
0259795147 | ||
|
|
db770dec7c | ||
|
|
0cd9a40dcf | ||
|
|
4475ba12a6 | ||
|
|
999d1436cf | ||
|
|
e5ec63e245 | ||
|
|
112502c4b8 | ||
|
|
fb0295953a | ||
|
|
64c6f7f455 | ||
|
|
4b038a641f | ||
|
|
4d723e40b9 | ||
|
|
e2505e9fed | ||
|
|
8e59e0806a | ||
|
|
ba255ec9ab | ||
|
|
783f2ac58a | ||
|
|
61c9f2f4fa | ||
|
|
66c1803f32 | ||
|
|
53b7588c4d | ||
|
|
73e0297ed7 | ||
|
|
def06644cc | ||
|
|
640cef25e2 | ||
|
|
5254bd6ea3 | ||
|
|
8c7d43e59f | ||
|
|
7c281906a0 | ||
|
|
1cd54356c2 | ||
|
|
d0228e3c8b | ||
|
|
3e8d1ef962 | ||
|
|
94cc0d9ead | ||
|
|
f45786e877 | ||
|
|
7dccade18a | ||
|
|
4678ff1265 | ||
|
|
ad2e85a857 | ||
|
|
eee938c6ed | ||
|
|
7ea4fb7b98 | ||
|
|
547802e8e0 | ||
|
|
d6f8f3219f | ||
|
|
fa7b63e86d | ||
|
|
a12a294424 | ||
|
|
027190d2e1 | ||
|
|
f704fa3cbd | ||
|
|
ab480a35bd | ||
|
|
93c0fcd010 | ||
|
|
a94460037b | ||
|
|
8f461b8ac6 | ||
|
|
5b180d4e08 | ||
|
|
5355389e55 | ||
|
|
5b809ae626 | ||
|
|
09c778b003 | ||
|
|
70ab2814a0 | ||
|
|
d9a009137f | ||
|
|
b67dad84f8 | ||
|
|
9752da6115 | ||
|
|
ea586b6fcf | ||
|
|
8dc9fda113 | ||
|
|
45f1802a8d | ||
|
|
c1f66fafb7 | ||
|
|
6bc88d9564 | ||
|
|
88d57eb2ae | ||
|
|
d2740b219a | ||
|
|
164b2cd26b | ||
|
|
8a70d8a6f1 | ||
|
|
a2df57f69c | ||
|
|
ead101f9c1 | ||
|
|
363ced50c5 | ||
|
|
d9de8c4310 | ||
|
|
faed82d944 | ||
|
|
babbdbeff5 | ||
|
|
8cd2d19f31 | ||
|
|
9ba8e13e61 | ||
|
|
a3cd78b180 | ||
|
|
8275601b99 | ||
|
|
a49b0df494 | ||
|
|
e05c0a1831 | ||
|
|
edbd58bade | ||
|
|
3c7811f878 | ||
|
|
ebabe6d04c | ||
|
|
559c52db02 | ||
|
|
e90104ab23 | ||
|
|
923022201f | ||
|
|
a689e2f331 | ||
|
|
dd2c1d38af | ||
|
|
68984735c0 | ||
|
|
8e2d519e38 | ||
|
|
a13f9e5eac | ||
|
|
05ce28a855 | ||
|
|
a3e92efc5c | ||
|
|
3739310b1c | ||
|
|
56b2ad4ce1 | ||
|
|
0d5c22f086 | ||
|
|
537239dab4 | ||
|
|
37c981504c | ||
|
|
c2ec945c83 | ||
|
|
77661c6329 | ||
|
|
534a7b79bb | ||
|
|
985dd2914e | ||
|
|
c6f3c9f660 | ||
|
|
65ff2efafc | ||
|
|
4a28a64016 | ||
|
|
33d6cb84a1 | ||
|
|
afd62f21ce | ||
|
|
d013a986f5 | ||
|
|
3f3e5d32cd | ||
|
|
436d90f865 | ||
|
|
b17cdab055 | ||
|
|
ac570e31be | ||
|
|
947d379715 | ||
|
|
e0818a93fa | ||
|
|
1009a5cdf0 | ||
|
|
6198b27fb5 | ||
|
|
619f2c885d | ||
|
|
9321400ad7 | ||
|
|
21225fc7b2 | ||
|
|
7502d5bf85 | ||
|
|
55b3c139f5 | ||
|
|
d0a2783987 | ||
|
|
8624b84cc3 | ||
|
|
0595d43cf4 | ||
|
|
09833f2f13 | ||
|
|
40d9f56e8f | ||
|
|
aedbede752 | ||
|
|
062373b4e6 | ||
|
|
29c0c47b91 | ||
|
|
1cf99033f2 | ||
|
|
97f6ac8d75 | ||
|
|
6ecd8775c1 | ||
|
|
af495b20f4 | ||
|
|
10e551bff9 | ||
|
|
f0f5f4b374 | ||
|
|
82ce593b38 | ||
|
|
259710e527 | ||
|
|
06db3a58dc | ||
|
|
a22566bb1a | ||
|
|
c9bfcfe99e | ||
|
|
ca0a9dad00 | ||
|
|
05f18b0574 | ||
|
|
bb9e7b1b36 | ||
|
|
a3801fde69 | ||
|
|
7562ff1a4d | ||
|
|
a8b15cc7da | ||
|
|
9bfdc9d6ec | ||
|
|
0ce4825a86 | ||
|
|
72f4547b25 | ||
|
|
38135ad3a9 | ||
|
|
828d5e581f | ||
|
|
a48317b6f3 | ||
|
|
64c0d35946 | ||
|
|
66a78e61b3 | ||
|
|
94257ceb6a | ||
|
|
2c623a81ef | ||
|
|
e0b73c255a | ||
|
|
6fe6fe18fc | ||
|
|
1978ee2869 | ||
|
|
b1ad771c16 | ||
|
|
69a5b2e135 | ||
|
|
8f281a3e40 | ||
|
|
45c54bccc8 | ||
|
|
e1a0bf2b60 | ||
|
|
89eb9d4dd1 | ||
|
|
7366d472bd | ||
|
|
97a3d6864a | ||
|
|
2f0bf495ca | ||
|
|
5cdce2621d | ||
|
|
3c5c653e21 | ||
|
|
29ab40db34 | ||
|
|
fceca17838 | ||
|
|
4aa81fe392 | ||
|
|
06e30ef0a0 | ||
|
|
40b34835c4 | ||
|
|
cad9724444 | ||
|
|
c1629566a8 | ||
|
|
f0885f29e0 | ||
|
|
a97cab6dcd | ||
|
|
9fa46b212d | ||
|
|
a3c70d1d19 | ||
|
|
8fd6d516bb | ||
|
|
33f364e656 | ||
|
|
be2815563a | ||
|
|
1c0a6f35e6 | ||
|
|
ccbdc53c05 | ||
|
|
6afc66762e | ||
|
|
d843292cfe | ||
|
|
ebc0d14431 | ||
|
|
9398afb0e2 | ||
|
|
84d1044652 | ||
|
|
394f342cb9 | ||
|
|
2ae1021c98 | ||
|
|
a01742495f | ||
|
|
4e2c174b5a | ||
|
|
f58ce935be | ||
|
|
2178cf5355 | ||
|
|
e0c8baf63a | ||
|
|
05a672dbb9 | ||
|
|
f8744dd6fb | ||
|
|
290722ffb7 | ||
|
|
f45eb5abce | ||
|
|
66ef389afe | ||
|
|
97e32461a6 | ||
|
|
a1b51ee51d | ||
|
|
fff1f698e5 | ||
|
|
2803de06e8 | ||
|
|
c3b30a6f6d | ||
|
|
e397787f68 | ||
|
|
5aa1daaae6 | ||
|
|
aa402ef55b | ||
|
|
a068687eed | ||
|
|
61822f1204 | ||
|
|
6599d27610 | ||
|
|
4f40961915 | ||
|
|
5f7bb6043b | ||
|
|
6d3f89f74f | ||
|
|
c3773a92e2 | ||
|
|
ee94a214c1 | ||
|
|
cd212ca8f7 | ||
|
|
26e2674ba4 | ||
|
|
79772dbecf | ||
|
|
3382df24aa | ||
|
|
d5d90dee82 | ||
|
|
58c8683ad9 | ||
|
|
94a057ab8a | ||
|
|
85a5e028d8 | ||
|
|
ca57e42938 | ||
|
|
8247bc6d80 | ||
|
|
bde41f9d48 | ||
|
|
3e34919257 | ||
|
|
9c1675ed52 | ||
|
|
a3af22acd7 | ||
|
|
ceb26d2d8a | ||
|
|
19a532dadb | ||
|
|
de247317c0 | ||
|
|
425b0a2531 | ||
|
|
941a5dc571 | ||
|
|
7451b33af9 | ||
|
|
781504087a | ||
|
|
609aac9399 | ||
|
|
641eeaaaea | ||
|
|
5289689bde | ||
|
|
d82ae8c693 | ||
|
|
a5c288a876 | ||
|
|
a23aa67ce5 | ||
|
|
e686a8ef5e | ||
|
|
3fd0502a5a | ||
|
|
912f82a2c2 | ||
|
|
7da00b5d9b | ||
|
|
70b9824eb8 | ||
|
|
f9b37472a4 | ||
|
|
d6935b2964 | ||
|
|
fb199a3817 | ||
|
|
6bfb4bbea7 | ||
|
|
ba5dea5af0 | ||
|
|
57f6ea559c | ||
|
|
5c329b0261 | ||
|
|
dc92577d13 | ||
|
|
f85e50ebd3 | ||
|
|
a9dd549be6 | ||
|
|
0ad9447475 | ||
|
|
def0449371 | ||
|
|
b19b1482f0 | ||
|
|
abcb6d7f6b | ||
|
|
f05ce219f5 | ||
|
|
ba75aff220 | ||
|
|
ab89440f79 | ||
|
|
00334f4751 | ||
|
|
978f137372 | ||
|
|
930eea01e9 | ||
|
|
a57adc0471 | ||
|
|
c544ad04b1 | ||
|
|
83f4fe441d | ||
|
|
f155a88d90 | ||
|
|
464b538d37 | ||
|
|
108c24aaae | ||
|
|
d28537cd51 | ||
|
|
7b561082c8 | ||
|
|
c8d769aa05 | ||
|
|
926f649f5b | ||
|
|
ef1b62998d | ||
|
|
498f45e59f | ||
|
|
ca53368bd6 | ||
|
|
8eb9991e81 | ||
|
|
6fedeff8a8 | ||
|
|
297389d552 | ||
|
|
2bf33861d4 | ||
|
|
bf149747b2 | ||
|
|
f9e202a9f0 | ||
|
|
693be265ca | ||
|
|
c72ba9430d | ||
|
|
64eb62f232 | ||
|
|
79e6cb478c | ||
|
|
fb545a3ed7 | ||
|
|
19d34662a0 | ||
|
|
afc41d079f | ||
|
|
ce93942d8e | ||
|
|
fa11dfd2db | ||
|
|
3a9c1ce8d3 | ||
|
|
e59be57933 | ||
|
|
f0478be7ef | ||
|
|
97e0c5ec4d | ||
|
|
ce8d4b4a39 | ||
|
|
ae3ea50ddf | ||
|
|
3571cb2b0e | ||
|
|
46e5b0c1b6 | ||
|
|
042a8f9712 | ||
|
|
391e2de932 | ||
|
|
fefec26759 | ||
|
|
81b616f824 | ||
|
|
88eb196769 | ||
|
|
718cf75dc0 | ||
|
|
de161e65f4 | ||
|
|
4a946d18e7 | ||
|
|
9ac278b5ed | ||
|
|
83c205b515 | ||
|
|
1af4728010 | ||
|
|
7200e71d30 | ||
|
|
b66d0a68dd | ||
|
|
b702abbebe | ||
|
|
52f76f4026 | ||
|
|
f90ff27083 | ||
|
|
6e75a2894d | ||
|
|
43d7a16dce | ||
|
|
5f0508ca34 | ||
|
|
b5272afb36 | ||
|
|
8fb0eaa7a8 | ||
|
|
3a4591b415 | ||
|
|
98b8ec6bf4 | ||
|
|
ac95db55da | ||
|
|
828a4ba36e | ||
|
|
09cefa6830 | ||
|
|
608746d644 | ||
|
|
e8ed111ed7 | ||
|
|
9d8d2a2f33 | ||
|
|
bc815ba6a0 | ||
|
|
ee6551c840 | ||
|
|
9f3c48ed2a | ||
|
|
d6c3eb7b1f | ||
|
|
b046455f1a | ||
|
|
a50a530793 | ||
|
|
7fedb6a696 | ||
|
|
111572ff29 | ||
|
|
3dd07f44c3 | ||
|
|
83c0597932 | ||
|
|
5305a260aa | ||
|
|
de31e352ad | ||
|
|
e051ca7e70 | ||
|
|
d4dfb8a0ac | ||
|
|
e5f9af6d1f | ||
|
|
bacd0e1a22 | ||
|
|
65432bf7fd | ||
|
|
f1f7e7dd14 | ||
|
|
91a877d51a | ||
|
|
5747acc126 | ||
|
|
829bf75951 | ||
|
|
9c83f58ffa | ||
|
|
10d9814c34 | ||
|
|
373f285b2f | ||
|
|
3d9c8779b5 | ||
|
|
dc9064636a | ||
|
|
3e57d03257 | ||
|
|
491d99c5cd | ||
|
|
d060fd1a0a | ||
|
|
157a84df5e | ||
|
|
0f71dbce2f |
@@ -5,7 +5,7 @@ node_modules
|
||||
|
||||
# dependencies
|
||||
/node_modules
|
||||
/newrelic_agent.log
|
||||
|
||||
.idea
|
||||
# testing
|
||||
/coverage
|
||||
@@ -55,4 +55,4 @@ tests/coverage
|
||||
|
||||
settings.json
|
||||
|
||||
go-sdk/tester/
|
||||
GoSDK/tester/
|
||||
@@ -2,6 +2,8 @@
|
||||
*/build/*
|
||||
*/coverage/*
|
||||
|
||||
*/dist/*
|
||||
|
||||
*/public/*
|
||||
*/views/*
|
||||
|
||||
@@ -21,10 +23,6 @@ LICENSE
|
||||
marketing/*/*
|
||||
licenses/*
|
||||
certifications/*
|
||||
api-docs/public/assets/*
|
||||
js-sdk/src/cli/server-monitor/out/scripts/prettify/*
|
||||
js-sdk/dist/logger.js
|
||||
js-sdk/dist/logger.min.js
|
||||
js-sdk/dist/fyipe.js
|
||||
js-sdk/dist/fyipe.min.js
|
||||
ApiDocs/public/assets/*
|
||||
JavaScriptSDK/src/cli/server-monitor/out/scripts/prettify/*
|
||||
_test/*
|
||||
100
.eslintrc.json
100
.eslintrc.json
@@ -6,7 +6,10 @@
|
||||
"jsx": true,
|
||||
"spread": true
|
||||
},
|
||||
"sourceType": "module"
|
||||
"sourceType": "module",
|
||||
"project": [
|
||||
"./tsconfig.json"
|
||||
]
|
||||
},
|
||||
"env": {
|
||||
"browser": true,
|
||||
@@ -17,43 +20,82 @@
|
||||
},
|
||||
"plugins": [
|
||||
"react",
|
||||
"jsx-a11y"
|
||||
"jsx-a11y",
|
||||
"progress",
|
||||
"@typescript-eslint",
|
||||
"unused-imports"
|
||||
],
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:react/recommended",
|
||||
"plugin:prettier/recommended",
|
||||
"prettier",
|
||||
"prettier/react"
|
||||
"prettier"
|
||||
],
|
||||
"globals": {
|
||||
"describe" :true,
|
||||
"context" :true,
|
||||
"before" :true,
|
||||
"beforeEach" :true,
|
||||
"after" :true,
|
||||
"afterEach" :true,
|
||||
"it" :true,
|
||||
"expect" :true,
|
||||
"workbox" :true,
|
||||
"importScripts" :true
|
||||
"describe": true,
|
||||
"context": true,
|
||||
"before": true,
|
||||
"beforeEach": true,
|
||||
"after": true,
|
||||
"afterEach": true,
|
||||
"it": true,
|
||||
"expect": true,
|
||||
"workbox": true,
|
||||
"importScripts": true,
|
||||
"$TSFixMe": true
|
||||
},
|
||||
"parser": "babel-eslint",
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"rules": {
|
||||
"no-fallthrough": "error",
|
||||
"no-unreachable": "error",
|
||||
"no-cond-assign": "error",
|
||||
"valid-typeof": "error",
|
||||
"no-func-assign": "error",
|
||||
"curly": "error",
|
||||
"no-extra-semi": "error",
|
||||
"no-else-return": "error",
|
||||
"no-div-regex": "error",
|
||||
"no-octal": "error",
|
||||
"no-extra-bind": "error",
|
||||
"unicode-bom": "error",
|
||||
"no-extra-boolean-cast": "error",
|
||||
"wrap-regex": "error",
|
||||
"wrap-iife": "error",
|
||||
"yield-star-spacing": "error",
|
||||
"no-implicit-coercion": "error",
|
||||
"no-extra-label": "error",
|
||||
"multiline-comment-style": "error",
|
||||
"no-lonely-if": "error",
|
||||
"no-floating-decimal": "error",
|
||||
"eqeqeq": "error",
|
||||
"dot-notation": "off", // Off because it messes up with typescript compiler.
|
||||
"@typescript-eslint/dot-notation": "off", //temp off.
|
||||
"progress/activate": 1,
|
||||
"linebreak-style": [
|
||||
"error",
|
||||
"unix"
|
||||
],
|
||||
"no-unused-vars": "error",
|
||||
// https://www.npmjs.com/package/eslint-plugin-unused-imports
|
||||
"no-unused-vars": "off",
|
||||
"@typescript-eslint/no-unused-vars": "off",
|
||||
"unused-imports/no-unused-imports": "error",
|
||||
"unused-imports/no-unused-vars": [
|
||||
"error",
|
||||
{
|
||||
"vars": "all",
|
||||
"varsIgnorePattern": "^_",
|
||||
"args": "after-used",
|
||||
"argsIgnorePattern": "^_"
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/explicit-member-accessibility": [
|
||||
"error"
|
||||
],
|
||||
"no-console": "error",
|
||||
"no-undef": "error",
|
||||
"no-empty": "error",
|
||||
"prefer-arrow-callback": "error",
|
||||
"constructor-super": "error",
|
||||
"no-case-declarations": "error",
|
||||
"no-mixed-spaces-and-tabs": "error",
|
||||
"no-useless-escape": "error",
|
||||
@@ -72,6 +114,26 @@
|
||||
"react/boolean-prop-naming": "error",
|
||||
"react/no-is-mounted": "error",
|
||||
"react/no-find-dom-node": "error",
|
||||
"one-var-declaration-per-line": "error",
|
||||
"arrow-parens": "error",
|
||||
"arrow-body-style": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"@typescript-eslint/typedef": [
|
||||
"error",
|
||||
{
|
||||
"arrowParameter": true,
|
||||
"variableDeclaration": true
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/strict-boolean-expressions": "off", //Need to enable this very soon
|
||||
"@typescript-eslint/explicit-function-return-type": [
|
||||
"error",
|
||||
{
|
||||
"allowExpressions": true
|
||||
}
|
||||
],
|
||||
"react/no-did-update-set-state": "error",
|
||||
"react/no-unknown-property": "error",
|
||||
"react/no-unused-prop-types": "error",
|
||||
@@ -89,7 +151,13 @@
|
||||
"react/jsx-pascal-case": "error",
|
||||
"array-callback-return": "error",
|
||||
"no-loop-func": "error",
|
||||
"no-duplicate-imports": "error", /// Enable this and fix errors.
|
||||
"no-promise-executor-return": "error",
|
||||
"capitalized-comments": "off", // turn this on after ts-migration.
|
||||
"for-direction": "error",
|
||||
"getter-return": "error",
|
||||
"jsx-a11y/anchor-is-valid": "error",
|
||||
"no-async-promise-executor": "error",
|
||||
"prefer-const": [
|
||||
"error",
|
||||
{
|
||||
|
||||
21
.github/skipped-workflows/accounts-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/accounts-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Accounts Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd accounts
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/admin-dashboard-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/admin-dashboard-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Admin Dashboard Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd AdminDashboard
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/api-docs-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/api-docs-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: API Docs Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd ApiDocs
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/application-scanner-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/application-scanner-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Application Scanner Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd ApplicationScanner
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/backend-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/backend-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Backend Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd backend
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/common-server-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/common-server-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Common Server Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd CommonServer
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/common-ui-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/common-ui-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Common UI Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd CommonUI
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/container-scanner-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/container-scanner-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Container Scanner Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd ContainerScanner
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/dashboard-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/dashboard-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Dashboard Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd dashboard
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/data-ingestor-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/data-ingestor-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Data Ingestor Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd data-ingestor
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/helm-chart-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/helm-chart-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Helm Chart Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd HelmChart
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/home-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/home-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Home Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd home
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/http-test-server-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/http-test-server-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: HTTP Test Server Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd HttpTestServer
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/init-script-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/init-script-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: InitScript Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd InitScript
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/js-sdk-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/js-sdk-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: JS SDK Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd JavaScriptSDK
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/licensing-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/licensing-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Licensing Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd licensing
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/lighthousr-runner-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/lighthousr-runner-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Lighthouse Runner Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd LighthouseRunner
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/oneuptime-acme-http-01-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/oneuptime-acme-http-01-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: OneUptime ACME HTTP Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd oneuptime-acme-http-01
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/oneuptime-gl-manager.yaml
vendored
Normal file
21
.github/skipped-workflows/oneuptime-gl-manager.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: OneUptime GL Manager Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd oneuptime-gl-manager
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/oneuptime-le-store-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/oneuptime-le-store-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: OneUptime LetsEncrypt Store Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd oneuptime-le-store
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/probe-api-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/probe-api-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Probe API Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd ProbeAPI
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/probe-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/probe-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Probe Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd probe
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/realtime-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/realtime-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Realtime Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd realtime
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/script-runner-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/script-runner-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Script Runner Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd ScriptRunner
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/status-page-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/status-page-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Status Page Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd staus-page
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
21
.github/skipped-workflows/test-backend.yaml
vendored
Normal file
21
.github/skipped-workflows/test-backend.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Backend Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- 'hotfix-*' # excludes hotfix branches
|
||||
- 'release'
|
||||
- 'staging-release'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: npm run dev
|
||||
- run: cd backend && npm install
|
||||
- run: cd backend && ENCRYPTION_KEY=$ENCRYPTION_KEY TEST_EMAIL_SMTP_PORT=$TEST_EMAIL_SMTP_PORT TEST_EMAIL_SMTP_SERVER=$TEST_EMAIL_SMTP_SERVER TEST_EMAIL=$TEST_EMAIL TEST_EMAIL_NAME=$TEST_EMAIL TEST_EMAIL_PASSWORD=$TEST_EMAIL_PASSWORD IS_SAAS_SERVICE=true IS_TESTING=true DOCKER_UNMASKED_USERNAME=$DOCKER_UNMASKED_USERNAME DOCKER_UNMASKED_PASSWORD=$DOCKER_UNMASKED_PASSWORD DOCKER_SECURITY_SCAN_REGISTRY_URL=$DOCKER_SECURITY_SCAN_REGISTRY_URL DOCKER_SECURITY_SCAN_IMAGE_PATH=$DOCKER_SECURITY_SCAN_IMAGE_PATH DOCKER_SECURITY_SCAN_IMAGE_TAGS=$DOCKER_SECURITY_SCAN_IMAGE_TAGS GITHUB_UNMASKED_USERNAME=$GITHUB_UNMASKED_USERNAME GITHUB_UNMASKED_PASSWORD=$GITHUB_UNMASKED_PASSWORD GITHUB_SECURITY_SCAN_REPOSITORY_URL=$GITHUB_SECURITY_SCAN_REPOSITORY_URL npm test
|
||||
|
||||
19
.github/skipped-workflows/test-enterprise.yaml
vendored
Normal file
19
.github/skipped-workflows/test-enterprise.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
name: Enterprise Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- 'hotfix-*' # excludes hotfix branches
|
||||
- 'release'
|
||||
- 'staging-release'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: npm run docker-enterprise-test
|
||||
|
||||
19
.github/skipped-workflows/test-saas.yaml
vendored
Normal file
19
.github/skipped-workflows/test-saas.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
name: SaaS Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- 'hotfix-*' # excludes hotfix branches
|
||||
- 'release'
|
||||
- 'staging-release'
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: npm run docker-saas-test
|
||||
|
||||
21
.github/skipped-workflows/zapier-audit.yaml
vendored
Normal file
21
.github/skipped-workflows/zapier-audit.yaml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Zapier Audit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- name: Run audit
|
||||
run: |-
|
||||
cd zapier
|
||||
npm install
|
||||
npm run audit
|
||||
|
||||
43
.github/workflows/accounts-production-deploy.yaml
vendored
Normal file
43
.github/workflows/accounts-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
name: Accounts Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/accounts:4.0.$CI_PIPELINE_ID --push -f ./accounts/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/accounts:latest --push -f ./accounts/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-accounts fi-accounts=oneuptime/accounts:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
55
.github/workflows/accounts-staging-deploy.yaml
vendored
Normal file
55
.github/workflows/accounts-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
name: Accounts Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy accounts.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/accounts:4.0.$CI_PIPELINE_ID-staging --push -f ./accounts/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/accounts:staging --push -f ./accounts/Dockerfile .
|
||||
- run: sudo kubectl config get-contexts
|
||||
- run: kubectl config get-contexts
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-accounts fi-accounts=oneuptime/accounts:4.0.$CI_PIPELINE_ID-staging
|
||||
# Publish to GitHub registry.
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag ghcr.io/oneuptime/accounts:staging --push -f ./accounts/Dockerfile .
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
44
.github/workflows/admin-dashboard-production-deploy.yaml
vendored
Normal file
44
.github/workflows/admin-dashboard-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: Admin Dashboard Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy AdminDashboard.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/AdminDashboard:4.0.$CI_PIPELINE_ID --push -f ./AdminDashboard/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/AdminDashboard:latest --push -f ./AdminDashboard/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-admin fi-admin=oneuptime/AdminDashboard:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
45
.github/workflows/admin-dashboard-staging-deploy.yaml
vendored
Normal file
45
.github/workflows/admin-dashboard-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Admin Dashboard Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy AdminDashboard.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/AdminDashboard:4.0.$CI_PIPELINE_ID-staging --push -f ./AdminDashboard/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/AdminDashboard:staging --push -f ./AdminDashboard/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-admin fi-admin=oneuptime/AdminDashboard:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
44
.github/workflows/api-docs-production-deploy.yaml
vendored
Normal file
44
.github/workflows/api-docs-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: API Docs Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy ApiDocs.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ApiDocs:4.0.$CI_PIPELINE_ID --push -f ./ApiDocs/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ApiDocs:latest --push -f ./ApiDocs/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-ApiDocs fi-ApiDocs=oneuptime/ApiDocs:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
45
.github/workflows/api-docs-staging-deploy.yaml
vendored
Normal file
45
.github/workflows/api-docs-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: API Docs Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy ApiDocs.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ApiDocs:4.0.$CI_PIPELINE_ID-staging --push -f ./ApiDocs/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ApiDocs:staging --push -f ./ApiDocs/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-admin fi-admin=oneuptime/ApiDocs:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
44
.github/workflows/application-scanner-production-deploy.yaml
vendored
Normal file
44
.github/workflows/application-scanner-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: Application Scanner Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy ApplicationScanner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ApplicationScanner:4.0.$CI_PIPELINE_ID --push -f ./ApplicationScanner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ApplicationScanner:latest --push -f ./ApplicationScanner/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-app-scan fi-app-scan=oneuptime/ApplicationScanner:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
45
.github/workflows/application-scanner-staging-deploy.yaml
vendored
Normal file
45
.github/workflows/application-scanner-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Application Scanner Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy ApplicationScanner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ApplicationScanner:4.0.$CI_PIPELINE_ID-staging --push -f ./ApplicationScanner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ApplicationScanner:staging --push -f ./ApplicationScanner/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-app-scan fi-app-scan=oneuptime/ApplicationScanner:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
44
.github/workflows/backend-production-deploy.yaml
vendored
Normal file
44
.github/workflows/backend-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: Backend Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy backend.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/backend:4.0.$CI_PIPELINE_ID --push -f ./backend/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/backend:latest --push -f ./backend/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-backend fi-backend=oneuptime/backend:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
45
.github/workflows/backend-staging-deploy.yaml
vendored
Normal file
45
.github/workflows/backend-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Backend Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy backend.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/backend:4.0.$CI_PIPELINE_ID-staging --push -f ./backend/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/backend:staging --push -f ./backend/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-backend fi-backend=oneuptime/backend:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
24
.github/workflows/code-quality.yaml
vendored
24
.github/workflows/code-quality.yaml
vendored
@@ -1,24 +0,0 @@
|
||||
name: Code Quality Scan
|
||||
|
||||
on:
|
||||
# Trigger analysis when pushing in master or pull requests, and when creating
|
||||
# a pull request.
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
jobs:
|
||||
sonarcloud:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
# Disabling shallow clone is recommended for improving relevancy of reporting
|
||||
fetch-depth: 0
|
||||
- name: SonarCloud Scan
|
||||
uses: sonarsource/sonarcloud-github-action@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
22
.github/workflows/common-jobs.yaml
vendored
Normal file
22
.github/workflows/common-jobs.yaml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
name: Common Jobs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- 'hotfix-*' # excludes hotfix branches
|
||||
- 'release'
|
||||
- 'staging-release'
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
- run: sudo apt-get update
|
||||
- run: sudo apt-get install -y curl gcc
|
||||
- run: sudo apt-get install -y build-essential
|
||||
- run: sudo apt-get install -y nodejs
|
||||
- run: npm install
|
||||
- run: npm run lint
|
||||
|
||||
22
.github/workflows/common.yaml
vendored
22
.github/workflows/common.yaml
vendored
@@ -1,22 +0,0 @@
|
||||
name: Common Jobs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- 'hotfix-*' # excludes hotfix branches
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
- run: sudo apt-get update
|
||||
- run: sudo apt-get install -y curl gcc
|
||||
- run: sudo apt-get install -y build-essential
|
||||
- run: sudo apt-get install -y nodejs
|
||||
- run: npm ci
|
||||
- run: npm run lint
|
||||
- run: chmod +x ./ci/scripts/cleanup.sh
|
||||
- run: ./ci/scripts/cleanup.sh
|
||||
|
||||
44
.github/workflows/container-scanner-production-deploy.yaml
vendored
Normal file
44
.github/workflows/container-scanner-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: Container Scanner Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy ContainerScanner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ContainerScanner:4.0.$CI_PIPELINE_ID --push -f ./ContainerScanner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ContainerScanner:latest --push -f ./ContainerScanner/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-cont-scan fi-cont-scan=oneuptime/ContainerScanner:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
45
.github/workflows/container-scanner-staging-deploy.yaml
vendored
Normal file
45
.github/workflows/container-scanner-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Container Scanner Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy ContainerScanner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ContainerScanner:4.0.$CI_PIPELINE_ID-staging --push -f ./ContainerScanner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ContainerScanner:staging --push -f ./ContainerScanner/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-cont-scan fi-cont-scan=oneuptime/ContainerScanner:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
44
.github/workflows/dashboard-production-deploy.yaml
vendored
Normal file
44
.github/workflows/dashboard-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: Dashboard Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy dashboard.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard:4.0.$CI_PIPELINE_ID --push -f ./dashboard/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard:latest --push -f ./dashboard/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-dashboard fi-dashboard=oneuptime/dashboard:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
45
.github/workflows/dashboard-staging-deploy.yaml
vendored
Normal file
45
.github/workflows/dashboard-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Dashboard Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy dashboard.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard:4.0.$CI_PIPELINE_ID-staging --push -f ./dashboard/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/dashboard:staging --push -f ./dashboard/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-dashboard fi-dashboard=oneuptime/dashboard:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
44
.github/workflows/data-ingestor-production-deploy.yaml
vendored
Normal file
44
.github/workflows/data-ingestor-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: Data Ingestor Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy data-ingestor.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/data-ingestor:4.0.$CI_PIPELINE_ID --push -f ./data-ingestor/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/data-ingestor:latest --push -f ./data-ingestor/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-ingestor fi-ingestor=oneuptime/data-ingestor:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
45
.github/workflows/data-ingestor-staging-deploy.yaml
vendored
Normal file
45
.github/workflows/data-ingestor-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Data Ingestor Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy data-ingestor.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/data-ingestor:4.0.$CI_PIPELINE_ID-staging --push -f ./data-ingestor/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/data-ingestor:staging --push -f ./data-ingestor/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-ingestor fi-ingestor=oneuptime/data-ingestor:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
44
.github/workflows/haraka-production-deploy.yaml
vendored
Normal file
44
.github/workflows/haraka-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: Haraka Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy fi-haraka.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/haraka:4.0.$CI_PIPELINE_ID --push -f ./haraka/Dockerfile ./haraka
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/haraka:latest --push -f ./haraka/Dockerfile ./haraka
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-haraka fi-haraka=oneuptime/haraka:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
45
.github/workflows/haraka-staging-deploy.yaml
vendored
Normal file
45
.github/workflows/haraka-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Haraka Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy fi-haraka.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/haraka:4.0.$CI_PIPELINE_ID-staging --push -f ./haraka/Dockerfile ./haraka
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/haraka:staging --push -f ./haraka/Dockerfile ./haraka
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-haraka fi-haraka=oneuptime/haraka:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
44
.github/workflows/helm-chart-production-deploy.yaml
vendored
Normal file
44
.github/workflows/helm-chart-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: Helm Chart Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy HelmChart.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/HelmChart:4.0.$CI_PIPELINE_ID --push -f ./HelmChart/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/HelmChart:latest --push -f ./HelmChart/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-HelmChart fi-HelmChart=oneuptime/HelmChart:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
47
.github/workflows/helm-chart-staging-deploy.yaml
vendored
Normal file
47
.github/workflows/helm-chart-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
name: Helm Chart Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy HelmChart.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/HelmChart:4.0.$CI_PIPELINE_ID-staging --push -f ./HelmChart/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/HelmChart:staging --push -f ./HelmChart/Dockerfile .
|
||||
- run: sudo kubectl config get-contexts
|
||||
- run: kubectl config get-contexts
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-HelmChart fi-HelmChart=oneuptime/HelmChart:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
44
.github/workflows/home-production-deploy.yaml
vendored
Normal file
44
.github/workflows/home-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: Home Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy home.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/home:4.0.$CI_PIPELINE_ID --push -f ./home/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/home:latest --push -f ./home/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-home fi-home=oneuptime/home:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
45
.github/workflows/home-staging-deploy.yaml
vendored
Normal file
45
.github/workflows/home-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Home Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy home.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/home:4.0.$CI_PIPELINE_ID-staging --push -f ./home/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/home:staging --push -f ./home/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-home fi-home=oneuptime/home:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
44
.github/workflows/http-test-server-production-deploy.yaml
vendored
Normal file
44
.github/workflows/http-test-server-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: HTTP Test Server Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy HttpTestServer.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/HttpTestServer:4.0.$CI_PIPELINE_ID --push -f ./HttpTestServer/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/HttpTestServer:latest --push -f ./HttpTestServer/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-test fi-test=oneuptime/HttpTestServer:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
45
.github/workflows/http-test-server-staging-deploy.yaml
vendored
Normal file
45
.github/workflows/http-test-server-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: HTTP Test Server Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy HttpTestServer.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/HttpTestServer:4.0.$CI_PIPELINE_ID-staging --push -f ./HttpTestServer/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/HttpTestServer:staging --push -f ./HttpTestServer/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-test fi-test=oneuptime/HttpTestServer:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
44
.github/workflows/init-script-production-deploy.yaml
vendored
Normal file
44
.github/workflows/init-script-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: Init Script Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy InitScript.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/InitScript:4.0.$CI_PIPELINE_ID --push -f ./InitScript/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/InitScript:latest --push -f ./InitScript/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-InitScript fi-InitScript=oneuptime/InitScript:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
43
.github/workflows/init-script-staging-deploy.yaml
vendored
Normal file
43
.github/workflows/init-script-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
name: Init Script Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy InitScript.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/InitScript:4.0.$CI_PIPELINE_ID-staging --push -f ./InitScript/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/InitScript:staging --push -f ./InitScript/Dockerfile .
|
||||
- run: sudo kubectl delete job fi-InitScript || echo "Job not found"
|
||||
- run: sudo helm upgrade --reuse-values fi ./HelmChart/public/oneuptime
|
||||
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
37
.github/workflows/js-sdk-production-deploy.yaml
vendored
Normal file
37
.github/workflows/js-sdk-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
name: JavaScript SDK Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./JavaScriptSDK
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: npm install
|
||||
- run: sudo npm install -g json
|
||||
- run: chmod +x ../ci/scripts/version-setup.sh
|
||||
- run: ../ci/scripts/version-setup.sh
|
||||
- run: json -I -f package.json -e 'this.name="oneuptime"'
|
||||
- run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
|
||||
- run: npm run build
|
||||
- run: npm publish
|
||||
35
.github/workflows/js-sdk-staging-deploy.yaml
vendored
Normal file
35
.github/workflows/js-sdk-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: JavaScript SDK Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./JavaScriptSDK
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: npm install
|
||||
- run: sudo npm install -g json
|
||||
- run: chmod +x ../ci/scripts/version-setup.sh
|
||||
- run: ../ci/scripts/version-setup.sh
|
||||
- run: json -I -f package.json -e 'this.name="oneuptime-staging"'
|
||||
- run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
|
||||
- run: npm run build
|
||||
- run: npm publish
|
||||
45
.github/workflows/licensing-production-deploy.yaml
vendored
Normal file
45
.github/workflows/licensing-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Licensing Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy licensing.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/licensing:4.0.$CI_PIPELINE_ID --push -f ./licensing/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/licensing:latest --push -f ./licensing/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-licensing fi-licensing=oneuptime/licensing:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
46
.github/workflows/licensing-staging-deploy.yaml
vendored
Normal file
46
.github/workflows/licensing-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
name: Licensing Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy licensing.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/licensing:4.0.$CI_PIPELINE_ID-staging --push -f ./licensing/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/licensing:staging --push -f ./licensing/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-licensing fi-licensing=oneuptime/licensing:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
45
.github/workflows/lighthouse-runner-production-deploy.yaml
vendored
Normal file
45
.github/workflows/lighthouse-runner-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Lighthouse Runner Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy LighthouseRunner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/LighthouseRunner:4.0.$CI_PIPELINE_ID --push -f ./LighthouseRunner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/LighthouseRunner:latest --push -f ./LighthouseRunner/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-lighthouse fi-lighthouse=oneuptime/LighthouseRunner:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
46
.github/workflows/lighthouse-runner-staging-deploy.yaml
vendored
Normal file
46
.github/workflows/lighthouse-runner-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
name: Lighthouse Runner Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy LighthouseRunner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/LighthouseRunner:4.0.$CI_PIPELINE_ID-staging --push -f ./LighthouseRunner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/LighthouseRunner:staging --push -f ./LighthouseRunner/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-lighthouse fi-lighthouse=oneuptime/LighthouseRunner:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
36
.github/workflows/nginx-production-deploy.yaml
vendored
Normal file
36
.github/workflows/nginx-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
name: Nginx Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy LighthouseRunner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/nginx:4.0.$CI_PIPELINE_ID --push -f ./nginx/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/nginx:latest --push -f ./nginx/Dockerfile .
|
||||
38
.github/workflows/nginx-staging-deploy.yaml
vendored
Normal file
38
.github/workflows/nginx-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
name: Lighthouse Runner Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy nginx.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/nginx:4.0.$CI_PIPELINE_ID-staging --push -f ./nginx/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/nginx:staging --push -f ./nginx/Dockerfile .
|
||||
35
.github/workflows/oneuptime-acme-http-01-production-deploy.yaml
vendored
Normal file
35
.github/workflows/oneuptime-acme-http-01-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: OneUptime ACME HTTP Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./oneuptime-acme-http-01
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: sudo npm install -g json
|
||||
- run: chmod +x ../ci/scripts/version-setup.sh
|
||||
- run: ../ci/scripts/version-setup.sh
|
||||
- run: json -I -f package.json -e 'this.name="oneuptime-acme-http-01"'
|
||||
- run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
|
||||
- run: npm publish
|
||||
33
.github/workflows/oneuptime-acme-http-01-staging-deploy.yaml
vendored
Normal file
33
.github/workflows/oneuptime-acme-http-01-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: OneUptime ACME HTTP Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./oneuptime-acme-http-01
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: sudo npm install -g json
|
||||
- run: chmod +x ../ci/scripts/version-setup.sh
|
||||
- run: ../ci/scripts/version-setup.sh
|
||||
- run: json -I -f package.json -e 'this.name="oneuptime-acme-http-01-staging"'
|
||||
- run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
|
||||
- run: npm publish
|
||||
35
.github/workflows/oneuptime-gl-manager-production-deploy.yaml
vendored
Normal file
35
.github/workflows/oneuptime-gl-manager-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: OneUptime LetsEncrypt Store Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./oneuptime-gl-manager
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: sudo npm install -g json
|
||||
- run: chmod +x ../ci/scripts/version-setup.sh
|
||||
- run: ../ci/scripts/version-setup.sh
|
||||
- run: json -I -f package.json -e 'this.name="oneuptime-gl-manager"'
|
||||
- run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
|
||||
- run: npm publish
|
||||
33
.github/workflows/oneuptime-gl-manager-staging-deploy.yaml
vendored
Normal file
33
.github/workflows/oneuptime-gl-manager-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: OneUptime LetsEncrypt Store Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./oneuptime-gl-manager
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: sudo npm install -g json
|
||||
- run: chmod +x ../ci/scripts/version-setup.sh
|
||||
- run: ../ci/scripts/version-setup.sh
|
||||
- run: json -I -f package.json -e 'this.name="oneuptime-gl-manager-staging"'
|
||||
- run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
|
||||
- run: npm publish
|
||||
35
.github/workflows/oneuptime-le-store-production-deploy.yaml
vendored
Normal file
35
.github/workflows/oneuptime-le-store-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: OneUptime LetsEncrypt Store Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./oneuptime-le-store
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: sudo npm install -g json
|
||||
- run: chmod +x ../ci/scripts/version-setup.sh
|
||||
- run: ../ci/scripts/version-setup.sh
|
||||
- run: json -I -f package.json -e 'this.name="oneuptime-le-store"'
|
||||
- run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
|
||||
- run: npm publish
|
||||
33
.github/workflows/oneuptime-le-store-staging-deploy.yaml
vendored
Normal file
33
.github/workflows/oneuptime-le-store-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: OneUptime LetsEncrypt Store Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./oneuptime-le-store
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: sudo npm install -g json
|
||||
- run: chmod +x ../ci/scripts/version-setup.sh
|
||||
- run: ../ci/scripts/version-setup.sh
|
||||
- run: json -I -f package.json -e 'this.name="oneuptime-le-store-staging"'
|
||||
- run: echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" > ~/.npmrc
|
||||
- run: npm publish
|
||||
45
.github/workflows/probe-api-production-deploy.yaml
vendored
Normal file
45
.github/workflows/probe-api-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Probe API Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy ProbeAPI.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ProbeAPI:4.0.$CI_PIPELINE_ID --push -f ./ProbeAPI/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ProbeAPI:latest --push -f ./ProbeAPI/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-ProbeAPI fi-ProbeAPI=oneuptime/ProbeAPI:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
46
.github/workflows/probe-api-staging-deploy.yaml
vendored
Normal file
46
.github/workflows/probe-api-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
name: Probe API Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy ProbeAPI.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ProbeAPI:4.0.$CI_PIPELINE_ID-staging --push -f ./ProbeAPI/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ProbeAPI:staging --push -f ./ProbeAPI/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-ProbeAPI fi-ProbeAPI=oneuptime/ProbeAPI:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
50
.github/workflows/probe-production-deploy.yaml
vendored
Normal file
50
.github/workflows/probe-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
name: Probe Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy probe.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:4.0.$CI_PIPELINE_ID --push -f ./probe/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:latest --push -f ./probe/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-probe1 fi-probe1=oneuptime/probe:4.0.$CI_PIPELINE_ID
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-probe2 fi-probe2=oneuptime/probe:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
51
.github/workflows/probe-staging-deploy.yaml
vendored
Normal file
51
.github/workflows/probe-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
name: Probe Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy probe.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:4.0.$CI_PIPELINE_ID-staging --push -f ./probe/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/probe:staging --push -f ./probe/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-probe1 fi-probe1=oneuptime/probe:4.0.$CI_PIPELINE_ID-staging
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-probe2 fi-probe2=oneuptime/probe:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
45
.github/workflows/realtime-production-deploy.yaml
vendored
Normal file
45
.github/workflows/realtime-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Realtime Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy realtime.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:4.0.$CI_PIPELINE_ID --push -f ./realtime/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:latest --push -f ./realtime/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-realtime fi-realtime=oneuptime/realtime:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
46
.github/workflows/realtime-staging-deploy.yaml
vendored
Normal file
46
.github/workflows/realtime-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
name: Realtime Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy realtime.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:4.0.$CI_PIPELINE_ID-staging --push -f ./realtime/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/realtime:staging --push -f ./realtime/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-realtime fi-realtime=oneuptime/realtime:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
45
.github/workflows/script-runner-production-deploy.yaml
vendored
Normal file
45
.github/workflows/script-runner-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Script Runner Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy ScriptRunner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ScriptRunner:4.0.$CI_PIPELINE_ID --push -f ./ScriptRunner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ScriptRunner:latest --push -f ./ScriptRunner/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-script fi-script=oneuptime/ScriptRunner:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
46
.github/workflows/script-runner-staging-deploy.yaml
vendored
Normal file
46
.github/workflows/script-runner-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
name: Script Runner Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy ScriptRunner.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ScriptRunner:4.0.$CI_PIPELINE_ID-staging --push -f ./ScriptRunner/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/ScriptRunner:staging --push -f ./ScriptRunner/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-script fi-script=oneuptime/ScriptRunner:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
45
.github/workflows/status-page-production-deploy.yaml
vendored
Normal file
45
.github/workflows/status-page-production-deploy.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
name: Status Page Production Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy StatusPage.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/StatusPage:4.0.$CI_PIPELINE_ID --push -f ./StatusPage/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/StatusPage:latest --push -f ./StatusPage/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-status fi-status=oneuptime/StatusPage:4.0.$CI_PIPELINE_ID
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
46
.github/workflows/status-page-staging-deploy.yaml
vendored
Normal file
46
.github/workflows/status-page-staging-deploy.yaml
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
name: Status Page Staging Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "staging-release"
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKERHUBPASSWORD: ${{secrets.DOCKERHUBPASSWORD}}
|
||||
DOCKERHUBUSERNAME: ${{secrets.DOCKERHUBUSERNAME}}
|
||||
CI_PIPELINE_ID: ${{github.run_number}}
|
||||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
|
||||
DIGITAL_OCEAN_API_KEY: ${{secrets.DIGITAL_OCEAN_API_KEY}}
|
||||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
AWS_DEFAULT_REGION: ${{secrets.AWS_DEFAULT_REGION}}
|
||||
NPM_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
check-latest: true
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/version-setup.sh
|
||||
- run: ./ci/scripts/version-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-staging-setup.sh
|
||||
- run: sudo docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
|
||||
# Build and deploy StatusPage.
|
||||
- run: sudo docker login --username $DOCKERHUBUSERNAME --password $DOCKERHUBPASSWORD
|
||||
- run: sudo docker buildx create --use
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/StatusPage:4.0.$CI_PIPELINE_ID-staging --push -f ./StatusPage/Dockerfile .
|
||||
- run: sudo docker buildx build --platform linux/amd64,linux/arm64 --tag oneuptime/StatusPage:staging --push -f ./StatusPage/Dockerfile .
|
||||
- run: chmod +x ./ci/scripts/deployment-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-setup.sh
|
||||
- run: chmod +x ./ci/scripts/deployment-production-setup.sh
|
||||
- run: bash ./ci/scripts/deployment-production-setup.sh
|
||||
- run: kubectl set image deployment/fi-status fi-status=oneuptime/StatusPage:4.0.$CI_PIPELINE_ID-staging
|
||||
# Cleanup
|
||||
- run: chmod +x ./ci/scripts/deployment-cleanup.sh
|
||||
- run: ./ci/scripts/deployment-cleanup.sh
|
||||
7
.gitignore
vendored
7
.gitignore
vendored
@@ -3,7 +3,10 @@ node_modules
|
||||
|
||||
# dependencies
|
||||
/node_modules
|
||||
/newrelic_agent.log
|
||||
|
||||
# Build Dist
|
||||
*/build/dist/*
|
||||
|
||||
.idea
|
||||
# testing
|
||||
/coverage
|
||||
@@ -53,4 +56,4 @@ tests/coverage
|
||||
|
||||
settings.json
|
||||
|
||||
go-sdk/tester/
|
||||
GoSDK/tester/
|
||||
106
.gitlab-ci.yml
106
.gitlab-ci.yml
@@ -24,14 +24,14 @@ include:
|
||||
- '/ci/spec/accounts/lighthouse.yaml'
|
||||
|
||||
# ADMIN DASHBOARD
|
||||
- '/ci/spec/admin-dashboard/audit.yaml'
|
||||
- '/ci/spec/admin-dashboard/deploy.yaml'
|
||||
- '/ci/spec/admin-dashboard/rollback.yaml'
|
||||
- '/ci/spec/AdminDashboard/audit.yaml'
|
||||
- '/ci/spec/AdminDashboard/deploy.yaml'
|
||||
- '/ci/spec/AdminDashboard/rollback.yaml'
|
||||
|
||||
# API-DOCS DASHBOARD
|
||||
- '/ci/spec/api-docs/audit.yaml'
|
||||
- '/ci/spec/api-docs/deploy.yaml'
|
||||
- '/ci/spec/api-docs/rollback.yaml'
|
||||
# ApiDocs DASHBOARD
|
||||
- '/ci/spec/ApiDocs/audit.yaml'
|
||||
- '/ci/spec/ApiDocs/deploy.yaml'
|
||||
- '/ci/spec/ApiDocs/rollback.yaml'
|
||||
|
||||
# BACKEND
|
||||
- '/ci/spec/backend/audit.yaml'
|
||||
@@ -44,11 +44,11 @@ include:
|
||||
- '/ci/spec/dashboard/deploy.yaml'
|
||||
- '/ci/spec/dashboard/rollback.yaml'
|
||||
|
||||
# HELM-CHART
|
||||
- '/ci/spec/helm-chart/audit.yaml'
|
||||
- '/ci/spec/helm-chart/build-n-test.yaml'
|
||||
- '/ci/spec/helm-chart/deploy.yaml'
|
||||
- '/ci/spec/helm-chart/rollback.yaml'
|
||||
# HelmChart
|
||||
- '/ci/spec/HelmChart/audit.yaml'
|
||||
- '/ci/spec/HelmChart/build-n-test.yaml'
|
||||
- '/ci/spec/HelmChart/deploy.yaml'
|
||||
- '/ci/spec/HelmChart/rollback.yaml'
|
||||
|
||||
# HOME
|
||||
- '/ci/spec/home/audit.yaml'
|
||||
@@ -56,18 +56,18 @@ include:
|
||||
- '/ci/spec/home/rollback.yaml'
|
||||
- '/ci/spec/home/lighthouse.yaml'
|
||||
|
||||
# HTTP-TEST-SERVER
|
||||
- '/ci/spec/http-test-server/audit.yaml'
|
||||
- '/ci/spec/http-test-server/deploy.yaml'
|
||||
- '/ci/spec/http-test-server/rollback.yaml'
|
||||
# HttpTestServer
|
||||
- '/ci/spec/HttpTestServer/audit.yaml'
|
||||
- '/ci/spec/HttpTestServer/deploy.yaml'
|
||||
- '/ci/spec/HttpTestServer/rollback.yaml'
|
||||
|
||||
# INIT-SCRIPT
|
||||
- '/ci/spec/init-script/audit.yaml'
|
||||
- '/ci/spec/init-script/deploy.yaml'
|
||||
# InitScript
|
||||
- '/ci/spec/InitScript/audit.yaml'
|
||||
- '/ci/spec/InitScript/deploy.yaml'
|
||||
|
||||
# LIGHTHOUSE RUNNER
|
||||
- '/ci/spec/lighthouse-runner/audit.yaml'
|
||||
- '/ci/spec/lighthouse-runner/deploy.yaml'
|
||||
- '/ci/spec/LighthouseRunner/audit.yaml'
|
||||
- '/ci/spec/LighthouseRunner/deploy.yaml'
|
||||
|
||||
# LICENSING
|
||||
- '/ci/spec/licensing/audit.yaml'
|
||||
@@ -80,10 +80,10 @@ include:
|
||||
- '/ci/spec/probe/deploy.yaml'
|
||||
- '/ci/spec/probe/rollback.yaml'
|
||||
|
||||
# STATUS-PAGE
|
||||
- '/ci/spec/status-page/audit.yaml'
|
||||
- '/ci/spec/status-page/deploy.yaml'
|
||||
- '/ci/spec/status-page/rollback.yaml'
|
||||
# StatusPage
|
||||
- '/ci/spec/StatusPage/audit.yaml'
|
||||
- '/ci/spec/StatusPage/deploy.yaml'
|
||||
- '/ci/spec/StatusPage/rollback.yaml'
|
||||
|
||||
# ZAPIER
|
||||
- '/ci/spec/zapier/audit.yaml'
|
||||
@@ -99,25 +99,25 @@ include:
|
||||
- '/ci/spec/tests/staging.yaml'
|
||||
- '/ci/spec/tests/production.yaml'
|
||||
|
||||
# JS-SDK
|
||||
- '/ci/spec/js-sdk/audit.yaml'
|
||||
- '/ci/spec/js-sdk/build-n-test.yaml'
|
||||
- '/ci/spec/js-sdk/deploy.yaml'
|
||||
# JavaScriptSDK
|
||||
- '/ci/spec/JavaScriptSDK/audit.yaml'
|
||||
- '/ci/spec/JavaScriptSDK/build-n-test.yaml'
|
||||
- '/ci/spec/JavaScriptSDK/deploy.yaml'
|
||||
|
||||
# PHP-SDK
|
||||
- '/ci/spec/php-sdk/audit.yaml'
|
||||
- '/ci/spec/php-sdk/build-n-test.yaml'
|
||||
- '/ci/spec/php-sdk/deploy.yaml'
|
||||
# PhpSDK
|
||||
- '/ci/spec/PhpSDK/audit.yaml'
|
||||
- '/ci/spec/PhpSDK/build-n-test.yaml'
|
||||
- '/ci/spec/PhpSDK/deploy.yaml'
|
||||
|
||||
# JAVA-SDK
|
||||
- '/ci/spec/java-sdk/audit.yaml'
|
||||
- '/ci/spec/java-sdk/build-n-test.yaml'
|
||||
- '/ci/spec/java-sdk/deploy.yaml'
|
||||
# JavaSDK
|
||||
- '/ci/spec/JavaSDK/audit.yaml'
|
||||
- '/ci/spec/JavaSDK/build-n-test.yaml'
|
||||
- '/ci/spec/JavaSDK/deploy.yaml'
|
||||
|
||||
# PYTHON-SDK
|
||||
- '/ci/spec/python-sdk/audit.yaml'
|
||||
- '/ci/spec/python-sdk/build-n-test.yaml'
|
||||
- '/ci/spec/python-sdk/deploy.yaml'
|
||||
# PythonSDK
|
||||
- '/ci/spec/PythonSDK/audit.yaml'
|
||||
- '/ci/spec/PythonSDK/build-n-test.yaml'
|
||||
- '/ci/spec/PythonSDK/deploy.yaml'
|
||||
|
||||
# RUBY-SDK
|
||||
- '/ci/spec/ruby-sdk/audit.yaml'
|
||||
@@ -137,14 +137,14 @@ include:
|
||||
- '/ci/spec/oneuptime-gl-manager/deploy.yaml'
|
||||
|
||||
# Application Scanner
|
||||
- '/ci/spec/application-scanner/deploy.yaml'
|
||||
- '/ci/spec/ApplicationScanner/deploy.yaml'
|
||||
|
||||
# Script Runner
|
||||
- '/ci/spec/script-runner/audit.yaml'
|
||||
- '/ci/spec/script-runner/deploy.yaml'
|
||||
- '/ci/spec/ScriptRunner/audit.yaml'
|
||||
- '/ci/spec/ScriptRunner/deploy.yaml'
|
||||
|
||||
# Container Scanner
|
||||
- '/ci/spec/container-scanner/deploy.yaml'
|
||||
- '/ci/spec/ContainerScanner/deploy.yaml'
|
||||
|
||||
# realtime
|
||||
- '/ci/spec/realtime/audit.yaml'
|
||||
@@ -156,12 +156,12 @@ include:
|
||||
- '/ci/spec/data-ingestor/deploy.yaml'
|
||||
- '/ci/spec/data-ingestor/rollback.yaml'
|
||||
|
||||
# probe-api
|
||||
- '/ci/spec/probe-api/audit.yaml'
|
||||
- '/ci/spec/probe-api/deploy.yaml'
|
||||
- '/ci/spec/probe-api/rollback.yaml'
|
||||
# ProbeAPI
|
||||
- '/ci/spec/ProbeAPI/audit.yaml'
|
||||
- '/ci/spec/ProbeAPI/deploy.yaml'
|
||||
- '/ci/spec/ProbeAPI/rollback.yaml'
|
||||
|
||||
# # GO-SDK
|
||||
# - '/ci/spec/go-sdk/audit.yaml'
|
||||
# - '/ci/spec/go-sdk/build-n-test.yaml'
|
||||
# - '/ci/spec/go-sdk/deploy.yaml'
|
||||
# # GoSDK
|
||||
# - '/ci/spec/GoSDK/audit.yaml'
|
||||
# - '/ci/spec/GoSDK/build-n-test.yaml'
|
||||
# - '/ci/spec/GoSDK/deploy.yaml'
|
||||
|
||||
4
.husky/pre-commit
Executable file
4
.husky/pre-commit
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
npm run lint
|
||||
@@ -51,5 +51,5 @@ LICENSE
|
||||
marketing/*/*
|
||||
licenses/*
|
||||
certifications/*
|
||||
api-docs/public/assets/*
|
||||
js-sdk/src/cli/server-monitor/out/scripts/prettify/*
|
||||
ApiDocs/public/assets/*
|
||||
JavaScriptSDK/src/cli/server-monitor/out/scripts/prettify/*
|
||||
26
.vscode/launch.json
vendored
26
.vscode/launch.json
vendored
@@ -3,7 +3,13 @@
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Node.js - Debug Current File",
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"program": "${file}"
|
||||
},
|
||||
{
|
||||
"address": "0.0.0.0",
|
||||
"localRoot": "${workspaceFolder}/backend",
|
||||
@@ -16,6 +22,18 @@
|
||||
],
|
||||
"type": "pwa-node"
|
||||
},
|
||||
{
|
||||
"address": "0.0.0.0",
|
||||
"localRoot": "${workspaceFolder}/data-ingestor",
|
||||
"name": "Data Ingestor: Debug with Docker",
|
||||
"port": 9338,
|
||||
"remoteRoot": "/usr/src/app",
|
||||
"request": "attach",
|
||||
"skipFiles": [
|
||||
"<node_internals>/**"
|
||||
],
|
||||
"type": "pwa-node"
|
||||
},
|
||||
{
|
||||
"address": "0.0.0.0",
|
||||
"localRoot": "${workspaceFolder}/realtime",
|
||||
@@ -30,7 +48,7 @@
|
||||
},
|
||||
{
|
||||
"address": "0.0.0.0",
|
||||
"localRoot": "${workspaceFolder}/probe-api",
|
||||
"localRoot": "${workspaceFolder}/ProbeAPI",
|
||||
"name": "Probe API: Debug with Docker",
|
||||
"port": 9251,
|
||||
"remoteRoot": "/usr/src/app",
|
||||
@@ -54,7 +72,7 @@
|
||||
},
|
||||
{
|
||||
"address": "0.0.0.0",
|
||||
"localRoot": "${workspaceFolder}/http-test-server",
|
||||
"localRoot": "${workspaceFolder}/HttpTestServer",
|
||||
"name": "HTTP Test Server: Debug with Docker",
|
||||
"port": 9234,
|
||||
"remoteRoot": "/usr/src/app",
|
||||
@@ -90,7 +108,7 @@
|
||||
},
|
||||
{
|
||||
"address": "0.0.0.0",
|
||||
"localRoot": "${workspaceFolder}/init-script",
|
||||
"localRoot": "${workspaceFolder}/InitScript",
|
||||
"name": "Init Script: Debug with Docker",
|
||||
"port": 9237,
|
||||
"remoteRoot": "/usr/src/app",
|
||||
|
||||
5
Accounts/.babelrc
Executable file
5
Accounts/.babelrc
Executable file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"plugins": [
|
||||
"@loadable/component/babel"
|
||||
]
|
||||
}
|
||||
58
Accounts/.dockerignore
Executable file
58
Accounts/.dockerignore
Executable file
@@ -0,0 +1,58 @@
|
||||
.git
|
||||
|
||||
node_modules
|
||||
# See https://help.github.com/ignore-files/ for more about ignoring files.
|
||||
|
||||
# dependencies
|
||||
/node_modules
|
||||
|
||||
.idea
|
||||
# testing
|
||||
/coverage
|
||||
|
||||
# production
|
||||
/build
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
.env.local
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
env.js
|
||||
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
yarn.lock
|
||||
Untitled-1
|
||||
*.local.sh
|
||||
*.local.yaml
|
||||
run
|
||||
stop
|
||||
|
||||
nohup.out*
|
||||
|
||||
encrypted-credentials.tar
|
||||
encrypted-credentials/
|
||||
|
||||
_README.md
|
||||
|
||||
# Important Add production values to gitignore.
|
||||
values-saas-production.yaml
|
||||
kubernetes/values-saas-production.yaml
|
||||
|
||||
/private
|
||||
|
||||
/tls_cert.pem
|
||||
/tls_key.pem
|
||||
/keys
|
||||
|
||||
temp_readme.md
|
||||
|
||||
tests/coverage
|
||||
|
||||
settings.json
|
||||
|
||||
GoSDK/tester/
|
||||
66
Accounts/Dockerfile
Executable file
66
Accounts/Dockerfile
Executable file
@@ -0,0 +1,66 @@
|
||||
#
|
||||
# Accounts Dockerfile
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:alpine
|
||||
|
||||
# Install bash.
|
||||
RUN apk update && apk add bash && apk add curl
|
||||
|
||||
#Use bash shell by default
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
RUN mkdir /usr/src/common
|
||||
WORKDIR /usr/src/common
|
||||
COPY ./common/package*.json /usr/src/common/
|
||||
RUN npm install
|
||||
COPY ./common /usr/src/common
|
||||
RUN npm compile
|
||||
|
||||
# Install CommonServer
|
||||
RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
RUN npm compile
|
||||
|
||||
|
||||
# Install CommonUI
|
||||
RUN mkdir /usr/src/CommonUI
|
||||
WORKDIR /usr/src/CommonUI
|
||||
COPY ./CommonUI/package*.json /usr/src/CommonUI/
|
||||
RUN npm install
|
||||
COPY ./CommonUI /usr/src/CommonUI
|
||||
RUN npm compile
|
||||
|
||||
|
||||
#SET ENV Variables
|
||||
ENV PRODUCTION=true
|
||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
||||
|
||||
RUN mkdir /usr/src/app
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Install app dependencies
|
||||
COPY ./accounts/package*.json /usr/src/app/
|
||||
RUN npm install
|
||||
RUN npm install -g ts-node
|
||||
|
||||
# Copy app source
|
||||
COPY ./accounts /usr/src/app
|
||||
|
||||
# Bundle app source
|
||||
RUN npm run build
|
||||
|
||||
# Expose ports.
|
||||
# - 3003: accounts
|
||||
EXPOSE 3003
|
||||
|
||||
#Run the app
|
||||
CMD [ "npm", "start" ]
|
||||
65
Accounts/Dockerfile.dev
Normal file
65
Accounts/Dockerfile.dev
Normal file
@@ -0,0 +1,65 @@
|
||||
#
|
||||
# Accounts Dockerfile
|
||||
#
|
||||
|
||||
# Pull base image nodejs image.
|
||||
FROM node:alpine
|
||||
|
||||
# Install bash.
|
||||
RUN apk update && apk add bash && apk add curl
|
||||
|
||||
#Use bash shell by default
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
RUN mkdir /usr/src
|
||||
|
||||
# Install common
|
||||
RUN mkdir /usr/src/common
|
||||
WORKDIR /usr/src/common
|
||||
COPY ./common/package*.json /usr/src/common/
|
||||
RUN npm install
|
||||
COPY ./common /usr/src/common
|
||||
RUN npm compile
|
||||
|
||||
# Install CommonServer
|
||||
RUN mkdir /usr/src/CommonServer
|
||||
WORKDIR /usr/src/CommonServer
|
||||
COPY ./CommonServer/package*.json /usr/src/CommonServer/
|
||||
RUN npm install
|
||||
COPY ./CommonServer /usr/src/CommonServer
|
||||
RUN npm compile
|
||||
|
||||
|
||||
# Install CommonUI
|
||||
RUN mkdir /usr/src/CommonUI
|
||||
WORKDIR /usr/src/CommonUI
|
||||
COPY ./CommonUI/package*.json /usr/src/CommonUI/
|
||||
RUN npm install
|
||||
COPY ./CommonUI /usr/src/CommonUI
|
||||
RUN npm compile
|
||||
|
||||
|
||||
#SET ENV Variables
|
||||
|
||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Copy package.json files
|
||||
COPY ./accounts/package.json /usr/src/app/package.json
|
||||
COPY ./accounts/package-lock.json /usr/src/app/package-lock.json
|
||||
|
||||
|
||||
# Install app dependencies
|
||||
RUN npm install
|
||||
|
||||
# Create .cache folder with necessary permissions for React-based apps
|
||||
# https://stackoverflow.com/questions/67087735/eacces-permission-denied-mkdir-usr-app-node-modules-cache-how-can-i-creat
|
||||
RUN mkdir -p node_modules/.cache && chmod -R 777 node_modules/.cache
|
||||
|
||||
# Expose ports.
|
||||
# - 3003: accounts
|
||||
EXPOSE 3003
|
||||
|
||||
#Run the app
|
||||
CMD [ "npm", "run", "dev" ]
|
||||
50
Accounts/index.ts
Executable file
50
Accounts/index.ts
Executable file
@@ -0,0 +1,50 @@
|
||||
import {
|
||||
ExpressRequest,
|
||||
ExpressResponse,
|
||||
ExpressStatic,
|
||||
} from 'CommonServer/Utils/Express';
|
||||
import logger from 'CommonServer/Utils/Logger';
|
||||
import app from 'CommonServer/Utils/StartServer';
|
||||
|
||||
import path from 'path';
|
||||
|
||||
import compression from 'compression';
|
||||
|
||||
app.use(compression());
|
||||
|
||||
app.get(
|
||||
['/env.js', '/accounts/env.js'],
|
||||
(req: ExpressRequest, res: ExpressResponse) => {
|
||||
const env: $TSFixMe = {
|
||||
REACT_APP_IS_SAAS_SERVICE: process.env['IS_SAAS_SERVICE'],
|
||||
REACT_APP_DISABLE_SIGNUP: process.env['DISABLE_SIGNUP'],
|
||||
REACT_APP_HOST: req.host,
|
||||
REACT_APP_STRIPE_PUBLIC_KEY: process.env['STRIPE_PUBLIC_KEY'],
|
||||
REACT_APP_AMPLITUDE_PUBLIC_KEY: process.env['AMPLITUDE_PUBLIC_KEY'],
|
||||
REACT_APP_VERSION:
|
||||
process.env['npm_package_version'] ||
|
||||
process.env['REACT_APP_VERSION'],
|
||||
};
|
||||
|
||||
res.contentType('application/javascript');
|
||||
res.send('window._env = ' + JSON.stringify(env));
|
||||
}
|
||||
);
|
||||
|
||||
app.use(ExpressStatic(path.join(__dirname, 'build')));
|
||||
|
||||
app.use(
|
||||
'/accounts/static/js',
|
||||
ExpressStatic(path.join(__dirname, 'build', 'static', 'js'))
|
||||
);
|
||||
|
||||
app.use('/accounts', ExpressStatic(path.join(__dirname, 'build')));
|
||||
|
||||
app.get('/*', (_req: ExpressRequest, res: ExpressResponse) => {
|
||||
res.sendFile(path.join(__dirname, 'build', 'index.html'));
|
||||
});
|
||||
|
||||
const PORT: $TSFixMe = process.env['PORT'] || 3003;
|
||||
|
||||
logger.info(`This project is running on port ${PORT}`);
|
||||
app.listen(PORT);
|
||||
30544
Accounts/package-lock.json
generated
Normal file
30544
Accounts/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user