Compare commits

...

148 Commits

Author SHA1 Message Date
standardci
0f1ff97a60 chore(release): publish new version
- @standardnotes/analytics@1.14.0
 - @standardnotes/api-gateway@1.11.4
 - @standardnotes/auth-server@1.15.0
 - @standardnotes/syncing-server@1.6.41
2022-08-09 18:49:11 +00:00
Karol Sójko
24e439f017 feat(auth): add subscription events to analytics 2022-08-09 20:47:29 +02:00
standardci
0a01fd58eb chore(release): publish new version
- @standardnotes/analytics@1.13.0
 - @standardnotes/api-gateway@1.11.3
 - @standardnotes/auth-server@1.14.0
 - @standardnotes/syncing-server@1.6.40
2022-08-09 18:20:44 +00:00
Karol Sójko
f25195b2c1 feat(auth): track registration in analytics 2022-08-09 20:18:53 +02:00
standardci
29674b02e6 chore(release): publish new version
- @standardnotes/analytics@1.12.2
 - @standardnotes/api-gateway@1.11.2
 - @standardnotes/auth-server@1.13.6
 - @standardnotes/syncing-server@1.6.39
2022-08-09 13:24:49 +00:00
Karol Sójko
572ea3febe fix(analytics): replace AND to OR operation on bitop 2022-08-09 15:23:10 +02:00
standardci
f8334cf9d2 chore(release): publish new version
- @standardnotes/analytics@1.12.1
 - @standardnotes/api-gateway@1.11.1
 - @standardnotes/auth-server@1.13.5
 - @standardnotes/syncing-server@1.6.38
2022-08-09 13:00:18 +00:00
Karol Sójko
0ffec66bea fix(analytics): bitop over analytics time 2022-08-09 14:58:37 +02:00
standardci
becb386d10 chore(release): publish new version
- @standardnotes/analytics@1.12.0
 - @standardnotes/api-gateway@1.11.0
 - @standardnotes/auth-server@1.13.4
 - @standardnotes/domain-events-infra@1.7.30
 - @standardnotes/domain-events@2.53.0
 - @standardnotes/event-store@1.1.29
 - @standardnotes/files-server@1.5.32
 - @standardnotes/scheduler-server@1.10.6
 - @standardnotes/syncing-server@1.6.37
2022-08-09 12:23:19 +00:00
Karol Sójko
0b9524eb26 feat: add total count of analytics over time 2022-08-09 14:21:04 +02:00
standardci
ff5cd0128a chore(release): publish new version
- @standardnotes/api-gateway@1.10.0
2022-08-09 11:08:58 +00:00
Karol Sójko
b9225cd9b6 feat(api-gateway): add editing items count over time 2022-08-09 13:07:26 +02:00
standardci
8f0ed3c5b3 chore(release): publish new version
- @standardnotes/api-gateway@1.9.1
2022-08-08 19:11:13 +00:00
Karol Sójko
12e3a768dd fix(api-gateway): add general activity to calculating activity retention 2022-08-08 21:09:11 +02:00
standardci
a04ab5b0e8 chore(release): publish new version
- @standardnotes/analytics@1.11.0
 - @standardnotes/api-gateway@1.9.0
 - @standardnotes/auth-server@1.13.3
 - @standardnotes/domain-events-infra@1.7.29
 - @standardnotes/domain-events@2.52.0
 - @standardnotes/event-store@1.1.28
 - @standardnotes/files-server@1.5.31
 - @standardnotes/scheduler-server@1.10.5
 - @standardnotes/syncing-server@1.6.36
2022-08-08 19:07:09 +00:00
Karol Sójko
845f08b060 feat(api-gateway): add analytics over time to daily report event 2022-08-08 21:05:31 +02:00
Karol Sójko
31c849cc2d fix(analytics): format of changes over time to total count 2022-08-08 21:04:54 +02:00
Karol Sójko
977757d346 feat(analytics): add calculating analytics over time 2022-08-08 20:48:18 +02:00
standardci
f2c549158d chore(release): publish new version
- @standardnotes/analytics@1.10.0
 - @standardnotes/api-gateway@1.8.0
 - @standardnotes/auth-server@1.13.2
 - @standardnotes/syncing-server@1.6.35
2022-08-08 18:16:43 +00:00
Karol Sójko
a36764f1b0 feat(api-gateway): add marking server interaction as general activity in analytics 2022-08-08 20:14:55 +02:00
standardci
033bc25d8f chore(release): publish new version
- @standardnotes/api-gateway@1.7.4
 - @standardnotes/auth-server@1.13.1
 - @standardnotes/scheduler-server@1.10.4
 - @standardnotes/syncing-server@1.6.34
2022-07-29 09:40:04 +00:00
Karol Sójko
31bd253a73 chore(deps): fix newrelic winston enricher initialization 2022-07-29 11:38:03 +02:00
standardci
2f4977be63 chore(release): publish new version
- @standardnotes/auth-server@1.13.0
2022-07-29 07:09:52 +00:00
Karol Sójko
35f931a708 feat(auth): remove crypto-random-string in favour of @standardnotes/sncrypto-node 2022-07-29 09:08:22 +02:00
standardci
3e23d8d5d5 chore(release): publish new version
- @standardnotes/api-gateway@1.7.3
 - @standardnotes/auth-server@1.12.2
 - @standardnotes/scheduler-server@1.10.3
 - @standardnotes/syncing-server@1.6.33
2022-07-29 06:35:21 +00:00
Karol Sójko
004de0a655 chore(deps): upgrade @newrelic/winston-enricher 2022-07-29 08:33:29 +02:00
standardci
47a1af4be1 chore(release): publish new version
- @standardnotes/scheduler-server@1.10.2
2022-07-29 06:30:08 +00:00
Karol Sójko
7b17c4caa8 chore(deps): upgrade inversify 2022-07-29 08:27:57 +02:00
standardci
fa29885b3f chore(release): publish new version
- @standardnotes/api-gateway@1.7.2
 - @standardnotes/files-server@1.5.30
 - @standardnotes/syncing-server@1.6.32
2022-07-27 11:40:47 +00:00
Karol Sójko
beece69f9e chore(deps): upgrade helmet 2022-07-27 13:39:19 +02:00
standardci
600ff1d62b chore(release): publish new version
- @standardnotes/api-gateway@1.7.1
 - @standardnotes/auth-server@1.12.1
 - @standardnotes/files-server@1.5.29
 - @standardnotes/scheduler-server@1.10.1
 - @standardnotes/syncing-server@1.6.31
2022-07-27 11:14:05 +00:00
Karol Sójko
094dc192a9 chore(deps): upgrade npm-check-updates 2022-07-27 13:12:25 +02:00
standardci
939bf30138 chore(release): publish new version
- @standardnotes/api-gateway@1.7.0
2022-07-26 13:00:56 +00:00
Karol Sójko
d203ce188a feat(api-gateway): add limited discount offer purchased to analytics report 2022-07-26 14:59:23 +02:00
standardci
268fed19f9 chore(release): publish new version
- @standardnotes/analytics@1.9.0
 - @standardnotes/api-gateway@1.6.30
 - @standardnotes/auth-server@1.12.0
 - @standardnotes/domain-events-infra@1.7.28
 - @standardnotes/domain-events@2.51.0
 - @standardnotes/event-store@1.1.27
 - @standardnotes/files-server@1.5.28
 - @standardnotes/scheduler-server@1.10.0
 - @standardnotes/syncing-server@1.6.30
2022-07-26 11:54:06 +00:00
Karol Sójko
04bf414de4 feat(scheduler): enable discount applying and withdraw for everyone 2022-07-26 13:52:34 +02:00
Karol Sójko
28e1c65631 feat(domain-events): add discount code to subscription purchased event 2022-07-26 13:52:34 +02:00
Karol Sójko
e936ac4ce1 feat(auth): add analytics for purchased subscription with a limited discount offer 2022-07-26 13:52:34 +02:00
Karol Sójko
13201e7a9e feat(analytics): add limited discount offer purchased activity 2022-07-26 13:52:34 +02:00
standardci
9740b28764 chore(release): publish new version
- @standardnotes/scheduler-server@1.9.2
2022-07-26 10:37:12 +00:00
Karol Sójko
1fa94efa02 fix(scheduler): change the discount code to an absolute discount 2022-07-26 12:35:16 +02:00
standardci
44172e1a8e chore(release): publish new version
- @standardnotes/scheduler-server@1.9.1
2022-07-26 07:25:30 +00:00
Karol Sójko
4ab0d24d24 fix(scheduler): eliminate read/write concurrency hazzard while updating predicate status 2022-07-26 09:23:45 +02:00
standardci
049e66770a chore(release): publish new version
- @standardnotes/scheduler-server@1.9.0
2022-07-25 18:45:09 +00:00
Karol Sójko
bf12687f63 feat(scheduler): add job interpreting logs 2022-07-25 20:43:18 +02:00
standardci
10389d9029 chore(release): publish new version
- @standardnotes/auth-server@1.11.31
2022-07-25 18:34:13 +00:00
Karol Sójko
40996f9d48 fix(auth): marking predicate verification result if user is not existing 2022-07-25 20:32:40 +02:00
standardci
3d284461f3 chore(release): publish new version
- @standardnotes/api-gateway@1.6.29
 - @standardnotes/auth-server@1.11.30
 - @standardnotes/domain-events-infra@1.7.27
 - @standardnotes/domain-events@2.50.2
 - @standardnotes/event-store@1.1.26
 - @standardnotes/files-server@1.5.27
 - @standardnotes/predicates@1.3.0
 - @standardnotes/scheduler-server@1.8.2
 - @standardnotes/syncing-server@1.6.29
2022-07-25 18:22:30 +00:00
Karol Sójko
6642641c11 feat(predicates): add could-not-be-determined predicate verification result 2022-07-25 20:20:35 +02:00
standardci
3e637a482e chore(release): publish new version
- @standardnotes/scheduler-server@1.8.1
2022-07-25 11:02:23 +00:00
Karol Sójko
6374248132 fix(scheduler): checking for predicates fullfillment on applying discount 2022-07-25 13:00:46 +02:00
standardci
b9661d74ee chore(release): publish new version
- @standardnotes/scheduler-server@1.8.0
2022-07-25 07:45:53 +00:00
Karol Sójko
0a5b956cb9 feat(scheduler): add feature flag behind applying and withdrawing discounts 2022-07-25 09:44:06 +02:00
standardci
be88fd941d chore(release): publish new version
- @standardnotes/scheduler-server@1.7.0
2022-07-25 05:32:13 +00:00
Karol Sójko
48af9e7c1c feat(scheduler): add publishing discount apply/withdraw events 2022-07-25 07:30:32 +02:00
Karol Sójko
71684350e9 feat(scheduler): add creating discount apply/withdraw events 2022-07-25 07:20:50 +02:00
standardci
9a1924b7c6 chore(release): publish new version
- @standardnotes/scheduler-server@1.6.0
2022-07-22 11:38:37 +00:00
Karol Sójko
fc20697d81 feat(scheduler): schedule apply and withdraw subscription discounts upon registration 2022-07-22 13:37:00 +02:00
standardci
e7dda207fa chore(release): publish new version
- @standardnotes/analytics@1.8.3
 - @standardnotes/api-gateway@1.6.28
 - @standardnotes/auth-server@1.11.29
 - @standardnotes/domain-events-infra@1.7.26
 - @standardnotes/event-store@1.1.25
 - @standardnotes/files-server@1.5.26
 - @standardnotes/scheduler-server@1.5.23
 - @standardnotes/syncing-server@1.6.28
2022-07-15 11:02:23 +00:00
Karol Sójko
7fd97fa194 fix(analytics): change send_command to bitop function 2022-07-15 12:58:44 +02:00
Karol Sójko
ccbadfbd69 chore(deps): upgrade ioredis 2022-07-15 12:55:21 +02:00
standardci
e2f2d6c5d8 chore(release): publish new version
- @standardnotes/api-gateway@1.6.27
 - @standardnotes/auth-server@1.11.28
 - @standardnotes/files-server@1.5.25
 - @standardnotes/syncing-server@1.6.27
2022-07-15 09:48:19 +00:00
Karol Sójko
8b64e95845 chore(deps): upgrade nodemon 2022-07-15 11:46:32 +02:00
standardci
a7e528cdbb chore(release): publish new version
- @standardnotes/api-gateway@1.6.26
 - @standardnotes/auth-server@1.11.27
 - @standardnotes/domain-events-infra@1.7.25
 - @standardnotes/domain-events@2.50.1
 - @standardnotes/event-store@1.1.24
 - @standardnotes/files-server@1.5.24
 - @standardnotes/scheduler-server@1.5.22
 - @standardnotes/syncing-server@1.6.26
2022-07-15 08:19:36 +00:00
Karol Sójko
e23291359f fix(domain-events): add invoice numver to event payload 2022-07-15 10:18:04 +02:00
standardci
2cd557c000 chore(release): publish new version
- @standardnotes/api-gateway@1.6.25
 - @standardnotes/auth-server@1.11.26
 - @standardnotes/domain-events-infra@1.7.24
 - @standardnotes/domain-events@2.50.0
 - @standardnotes/event-store@1.1.23
 - @standardnotes/files-server@1.5.23
 - @standardnotes/scheduler-server@1.5.21
 - @standardnotes/syncing-server@1.6.25
2022-07-15 08:16:16 +00:00
Karol Sójko
a42ff6523f feat(domain-events): add invoice generated event 2022-07-15 10:13:59 +02:00
standardci
62eaf3280d chore(release): publish new version
- @standardnotes/auth-server@1.11.25
2022-07-15 08:10:02 +00:00
Karol Sójko
f25fa4ba1c Revert "chore(deps): upgrade crypto-random-string"
This reverts commit ec0fb98b72.
2022-07-15 10:07:24 +02:00
standardci
7d498d4b75 chore(release): publish new version
- @standardnotes/auth-server@1.11.24
2022-07-15 07:53:55 +00:00
Karol Sójko
ec0fb98b72 chore(deps): upgrade crypto-random-string 2022-07-15 09:51:52 +02:00
Karol Sójko
9689be445c Merge pull request #10 from standardnotes/dependabot/github_actions/convictional/trigger-workflow-and-wait-1.6.3
chore(deps): bump convictional/trigger-workflow-and-wait from 1.6.1 to 1.6.3
2022-07-15 09:46:30 +02:00
Karol Sójko
adba3ce0b5 chore(infra): remove deploying to DEV environment 2022-07-14 16:09:23 +02:00
standardci
ee43cecaaf chore(release): publish new version
- @standardnotes/api-gateway@1.6.24
 - @standardnotes/auth-server@1.11.23
 - @standardnotes/files-server@1.5.22
 - @standardnotes/scheduler-server@1.5.20
 - @standardnotes/syncing-server@1.6.24
2022-07-14 14:06:36 +00:00
Karol Sójko
56fb33999e chore(deps): upgrade npm-check-updates 2022-07-14 16:04:34 +02:00
standardci
a421630a2d chore(release): publish new version
- @standardnotes/api-gateway@1.6.23
 - @standardnotes/auth-server@1.11.22
 - @standardnotes/common@1.30.0
 - @standardnotes/domain-events-infra@1.7.23
 - @standardnotes/domain-events@2.49.0
 - @standardnotes/event-store@1.1.22
 - @standardnotes/files-server@1.5.21
 - @standardnotes/predicates@1.2.6
 - @standardnotes/scheduler-server@1.5.19
 - @standardnotes/security@1.2.6
 - @standardnotes/syncing-server@1.6.23
2022-07-14 13:46:31 +00:00
Karol Sójko
7e95eea337 feat(domain-events): add refund requested event 2022-07-14 15:44:24 +02:00
standardci
eec76a7ec3 chore(release): publish new version
- @standardnotes/api-gateway@1.6.22
 - @standardnotes/auth-server@1.11.21
 - @standardnotes/domain-events-infra@1.7.22
 - @standardnotes/domain-events@2.48.1
 - @standardnotes/event-store@1.1.21
 - @standardnotes/files-server@1.5.20
 - @standardnotes/scheduler-server@1.5.18
 - @standardnotes/syncing-server@1.6.22
2022-07-14 13:01:50 +00:00
Karol Sójko
4184843e1d fix(domain-events): rate and adjustment formatted 2022-07-14 14:59:59 +02:00
standardci
84bb0d6bec chore(release): publish new version
- @standardnotes/api-gateway@1.6.21
 - @standardnotes/auth-server@1.11.20
 - @standardnotes/domain-events-infra@1.7.21
 - @standardnotes/domain-events@2.48.0
 - @standardnotes/event-store@1.1.20
 - @standardnotes/files-server@1.5.19
 - @standardnotes/scheduler-server@1.5.17
 - @standardnotes/syncing-server@1.6.21
2022-07-14 12:05:20 +00:00
Karol Sójko
54f769c6db feat(domain-events): add subscription rate adjusted event 2022-07-14 14:03:45 +02:00
standardci
b7eed64074 chore(release): publish new version
- @standardnotes/api-gateway@1.6.20
 - @standardnotes/auth-server@1.11.19
 - @standardnotes/domain-events-infra@1.7.20
 - @standardnotes/domain-events@2.47.0
 - @standardnotes/event-store@1.1.19
 - @standardnotes/files-server@1.5.18
 - @standardnotes/scheduler-server@1.5.16
 - @standardnotes/syncing-server@1.6.20
2022-07-14 11:46:36 +00:00
Karol Sójko
0134553cbb feat(domain-events): add refund processed event 2022-07-14 13:45:05 +02:00
standardci
f0b42c77c2 chore(release): publish new version
- @standardnotes/api-gateway@1.6.19
 - @standardnotes/auth-server@1.11.18
 - @standardnotes/domain-events-infra@1.7.19
 - @standardnotes/domain-events@2.46.0
 - @standardnotes/event-store@1.1.18
 - @standardnotes/files-server@1.5.17
 - @standardnotes/scheduler-server@1.5.15
 - @standardnotes/syncing-server@1.6.19
2022-07-14 11:20:30 +00:00
Karol Sójko
40b0f937bd feat(domain-events): add discount applied event 2022-07-14 13:19:04 +02:00
standardci
48c2c5af65 chore(release): publish new version
- @standardnotes/api-gateway@1.6.18
 - @standardnotes/auth-server@1.11.17
 - @standardnotes/domain-events-infra@1.7.18
 - @standardnotes/domain-events@2.45.0
 - @standardnotes/event-store@1.1.17
 - @standardnotes/files-server@1.5.16
 - @standardnotes/scheduler-server@1.5.14
 - @standardnotes/syncing-server@1.6.18
2022-07-14 10:41:09 +00:00
Karol Sójko
4384ba2f47 feat(domain-events): add payment failed event 2022-07-14 12:39:06 +02:00
standardci
11c2e08353 chore(release): publish new version
- @standardnotes/api-gateway@1.6.17
 - @standardnotes/auth-server@1.11.16
 - @standardnotes/common@1.29.0
 - @standardnotes/domain-events-infra@1.7.17
 - @standardnotes/domain-events@2.44.2
 - @standardnotes/event-store@1.1.16
 - @standardnotes/files-server@1.5.15
 - @standardnotes/predicates@1.2.5
 - @standardnotes/scheduler-server@1.5.13
 - @standardnotes/security@1.2.5
 - @standardnotes/syncing-server@1.6.17
2022-07-14 10:20:10 +00:00
Karol Sójko
dc55bd1fb9 fix(common): duplicate reset identifier 2022-07-14 12:18:08 +02:00
Karol Sójko
f7c04bc35f feat(common): add message identifiers from payment emails 2022-07-14 12:17:32 +02:00
standardci
ca801e321e chore(release): publish new version
- @standardnotes/api-gateway@1.6.16
 - @standardnotes/auth-server@1.11.15
 - @standardnotes/common@1.28.0
 - @standardnotes/domain-events-infra@1.7.16
 - @standardnotes/domain-events@2.44.1
 - @standardnotes/event-store@1.1.15
 - @standardnotes/files-server@1.5.14
 - @standardnotes/predicates@1.2.4
 - @standardnotes/scheduler-server@1.5.12
 - @standardnotes/security@1.2.4
 - @standardnotes/syncing-server@1.6.16
2022-07-13 17:28:39 +00:00
Karol Sójko
a3359e8c77 feat(common): add account reset email identifier 2022-07-13 19:27:05 +02:00
standardci
ab0ad2b26a chore(release): publish new version
- @standardnotes/api-gateway@1.6.15
 - @standardnotes/auth-server@1.11.14
 - @standardnotes/domain-events-infra@1.7.15
 - @standardnotes/domain-events@2.44.0
 - @standardnotes/event-store@1.1.14
 - @standardnotes/files-server@1.5.13
 - @standardnotes/scheduler-server@1.5.11
 - @standardnotes/syncing-server@1.6.15
2022-07-13 17:19:22 +00:00
Karol Sójko
4900b21047 feat(domain-events): add account reset requested event 2022-07-13 19:17:28 +02:00
standardci
0ee852aa84 chore(release): publish new version
- @standardnotes/api-gateway@1.6.14
 - @standardnotes/auth-server@1.11.13
 - @standardnotes/common@1.27.0
 - @standardnotes/domain-events-infra@1.7.14
 - @standardnotes/domain-events@2.43.1
 - @standardnotes/event-store@1.1.13
 - @standardnotes/files-server@1.5.12
 - @standardnotes/predicates@1.2.3
 - @standardnotes/scheduler-server@1.5.10
 - @standardnotes/security@1.2.3
 - @standardnotes/syncing-server@1.6.14
2022-07-13 09:58:45 +00:00
Karol Sójko
2de4362f8e feat(common): add student discount approved identifier 2022-07-13 11:57:02 +02:00
standardci
400913aaac chore(release): publish new version
- @standardnotes/api-gateway@1.6.13
 - @standardnotes/auth-server@1.11.12
 - @standardnotes/domain-events-infra@1.7.13
 - @standardnotes/domain-events@2.43.0
 - @standardnotes/event-store@1.1.12
 - @standardnotes/files-server@1.5.11
 - @standardnotes/scheduler-server@1.5.9
 - @standardnotes/syncing-server@1.6.13
2022-07-13 09:45:42 +00:00
Karol Sójko
f0d736cd1d feat(domain-events): add student discount approved event 2022-07-13 11:44:09 +02:00
standardci
54d1758eee chore(release): publish new version
- @standardnotes/api-gateway@1.6.12
 - @standardnotes/auth-server@1.11.11
 - @standardnotes/common@1.26.0
 - @standardnotes/domain-events-infra@1.7.12
 - @standardnotes/domain-events@2.42.1
 - @standardnotes/event-store@1.1.11
 - @standardnotes/files-server@1.5.10
 - @standardnotes/predicates@1.2.2
 - @standardnotes/scheduler-server@1.5.8
 - @standardnotes/security@1.2.2
 - @standardnotes/syncing-server@1.6.12
2022-07-13 09:12:42 +00:00
Karol Sójko
36bb98e2af feat(common): add student discount identifier 2022-07-13 11:10:38 +02:00
standardci
c3015493fc chore(release): publish new version
- @standardnotes/api-gateway@1.6.11
 - @standardnotes/auth-server@1.11.10
 - @standardnotes/domain-events-infra@1.7.11
 - @standardnotes/domain-events@2.42.0
 - @standardnotes/event-store@1.1.10
 - @standardnotes/files-server@1.5.9
 - @standardnotes/scheduler-server@1.5.7
 - @standardnotes/syncing-server@1.6.11
2022-07-13 08:18:37 +00:00
Karol Sójko
24c036836e feat: add student discount requested event 2022-07-13 10:17:04 +02:00
standardci
46be435e1a chore(release): publish new version
- @standardnotes/api-gateway@1.6.10
 - @standardnotes/auth-server@1.11.9
 - @standardnotes/syncing-server@1.6.10
2022-07-13 08:05:18 +00:00
Karol Sójko
c2847eff5e chore(dep): upgrade axios 2022-07-13 10:03:40 +02:00
standardci
d17b696fc5 chore(release): publish new version
- @standardnotes/api-gateway@1.6.9
 - @standardnotes/auth-server@1.11.8
 - @standardnotes/files-server@1.5.8
 - @standardnotes/syncing-server@1.6.9
2022-07-13 07:25:09 +00:00
Karol Sójko
11a047c3a6 chore(dep): upgrade express 2022-07-13 09:23:36 +02:00
standardci
e3ed797983 chore(release): publish new version
- @standardnotes/analytics@1.8.2
 - @standardnotes/api-gateway@1.6.8
 - @standardnotes/auth-server@1.11.7
 - @standardnotes/common@1.25.1
 - @standardnotes/domain-events-infra@1.7.10
 - @standardnotes/domain-events@2.41.1
 - @standardnotes/event-store@1.1.9
 - @standardnotes/files-server@1.5.7
 - @standardnotes/predicates@1.2.1
 - @standardnotes/scheduler-server@1.5.6
 - @standardnotes/security@1.2.1
 - @standardnotes/sncrypto-node@1.10.1
 - @standardnotes/syncing-server@1.6.8
 - @standardnotes/time@1.9.1
2022-07-12 18:33:42 +00:00
Karol Sójko
c5e41e65aa chore(dep): upgrade jest libraries 2022-07-12 20:31:45 +02:00
standardci
7e343d25e6 chore(release): publish new version
- @standardnotes/api-gateway@1.6.7
 - @standardnotes/auth-server@1.11.6
 - @standardnotes/domain-events-infra@1.7.9
 - @standardnotes/event-store@1.1.8
 - @standardnotes/files-server@1.5.6
 - @standardnotes/scheduler-server@1.5.5
 - @standardnotes/syncing-server@1.6.7
2022-07-12 18:21:48 +00:00
Karol Sójko
a6a9ddbe46 chore(dep): upgrade winston 2022-07-12 20:20:16 +02:00
standardci
8d501660a4 chore(release): publish new version
- @standardnotes/api-gateway@1.6.6
 - @standardnotes/auth-server@1.11.5
 - @standardnotes/files-server@1.5.5
 - @standardnotes/syncing-server@1.6.6
2022-07-12 18:16:11 +00:00
Karol Sójko
bb877069d5 chore(dep): upgrade prettyjson 2022-07-12 20:14:33 +02:00
Karol Sójko
48d65cebf9 chore(dep): upgrade @types/prettyjson 2022-07-12 20:13:50 +02:00
standardci
9e7e8df387 chore(release): publish new version
- @standardnotes/api-gateway@1.6.5
 - @standardnotes/auth-server@1.11.4
 - @standardnotes/event-store@1.1.7
 - @standardnotes/files-server@1.5.4
 - @standardnotes/scheduler-server@1.5.4
 - @standardnotes/syncing-server@1.6.5
2022-07-12 13:26:46 +00:00
Karol Sójko
8a44970965 chore(dep): upgrade dotenv 2022-07-12 15:24:35 +02:00
standardci
e551541d57 chore(release): publish new version
- @standardnotes/api-gateway@1.6.4
 - @standardnotes/auth-server@1.11.3
 - @standardnotes/domain-events-infra@1.7.8
 - @standardnotes/domain-events@2.41.0
 - @standardnotes/event-store@1.1.6
 - @standardnotes/files-server@1.5.3
 - @standardnotes/scheduler-server@1.5.3
 - @standardnotes/syncing-server@1.6.4
2022-07-12 11:53:16 +00:00
Karol Sójko
a091e8d2bf feat(domain-events): add discount withdraw requested event 2022-07-12 13:51:16 +02:00
Karol Sójko
4d1e8b48e6 Revert "fix: dependabot configuration"
This reverts commit 13307cf7bd.
2022-07-12 13:39:05 +02:00
Karol Sójko
13307cf7bd fix: dependabot configuration 2022-07-12 13:37:08 +02:00
standardci
03548d17ff chore(release): publish new version
- @standardnotes/api-gateway@1.6.3
 - @standardnotes/auth-server@1.11.2
 - @standardnotes/domain-events-infra@1.7.7
 - @standardnotes/domain-events@2.40.0
 - @standardnotes/event-store@1.1.5
 - @standardnotes/files-server@1.5.2
 - @standardnotes/scheduler-server@1.5.2
 - @standardnotes/syncing-server@1.6.3
2022-07-12 11:21:33 +00:00
Karol Sójko
c3de4fcbab feat: add discount apply requested event 2022-07-12 13:19:23 +02:00
dependabot[bot]
82495fa724 chore(deps): bump convictional/trigger-workflow-and-wait
Bumps [convictional/trigger-workflow-and-wait](https://github.com/convictional/trigger-workflow-and-wait) from 1.6.1 to 1.6.3.
- [Release notes](https://github.com/convictional/trigger-workflow-and-wait/releases)
- [Commits](https://github.com/convictional/trigger-workflow-and-wait/compare/v1.6.1...v1.6.3)

---
updated-dependencies:
- dependency-name: convictional/trigger-workflow-and-wait
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-12 10:26:33 +00:00
Karol Sójko
741262d031 fix: dependabot configuration 2022-07-12 11:17:00 +02:00
Karol Sójko
5a60961470 feat: create dependabot configuration 2022-07-12 09:55:47 +02:00
standardci
3462b60e47 chore(release): publish new version
- @standardnotes/event-store@1.1.4
 - @standardnotes/syncing-server@1.6.2
2022-07-11 10:57:54 +00:00
Karol Sójko
239d4ce4ec fix: add email backup tracing events 2022-07-11 12:56:25 +02:00
Karol Sójko
fc5cea11b5 fix: log errors on not being able to create a backup file 2022-07-11 12:56:25 +02:00
standardci
c54d721694 chore(release): publish new version
- @standardnotes/event-store@1.1.3
2022-07-11 10:41:44 +00:00
Karol Sójko
88d16d5392 fix: order of bindings 2022-07-11 12:39:29 +02:00
standardci
f1b22415c3 chore(release): publish new version
- @standardnotes/api-gateway@1.6.2
 - @standardnotes/auth-server@1.11.1
 - @standardnotes/domain-events-infra@1.7.6
 - @standardnotes/domain-events@2.39.1
 - @standardnotes/event-store@1.1.2
 - @standardnotes/files-server@1.5.1
 - @standardnotes/scheduler-server@1.5.1
 - @standardnotes/syncing-server@1.6.1
2022-07-11 10:36:50 +00:00
Karol Sójko
b4fae4b800 fix: remove unused MailBackupAttachmentTooBigEvent 2022-07-11 12:35:18 +02:00
standardci
b172177142 chore(release): publish new version
- @standardnotes/event-store@1.1.1
2022-07-11 10:17:12 +00:00
Karol Sójko
3fc11c5381 fix: optional migrations path 2022-07-11 12:15:40 +02:00
standardci
13cf896fe2 chore(release): publish new version
- @standardnotes/auth-server@1.11.0
 - @standardnotes/event-store@1.1.0
2022-07-11 10:00:23 +00:00
Karol Sójko
84ff915a56 feat: add event store package 2022-07-11 11:58:13 +02:00
Karol Sójko
74aedbccfe fix: publishing final image to docker hub 2022-07-08 12:45:12 +02:00
Karol Sójko
6e49298aea fix: add pre-deployment e2e tests 2022-07-08 12:18:20 +02:00
standardci
c1ba290e41 chore(release): publish new version
- @standardnotes/auth-server@1.10.0
 - @standardnotes/files-server@1.5.0
 - @standardnotes/sncrypto-node@1.10.0
2022-07-06 10:15:46 +00:00
Karol Sójko
60e8974580 feat: add sncryptio-node package 2022-07-06 12:14:05 +02:00
standardci
033eeda50a chore(release): publish new version
- @standardnotes/auth-server@1.9.0
 - @standardnotes/settings@1.17.0
 - @standardnotes/syncing-server@1.6.0
2022-07-06 10:07:30 +00:00
Karol Sójko
e7e34f3e16 feat: add settings package 2022-07-06 12:05:58 +02:00
standardci
7e1fcebdd8 chore(release): publish new version
- @standardnotes/api-gateway@1.6.1
 - @standardnotes/auth-server@1.8.0
 - @standardnotes/common@1.25.0
 - @standardnotes/domain-events-infra@1.7.5
 - @standardnotes/domain-events@2.39.0
 - @standardnotes/files-server@1.4.0
 - @standardnotes/predicates@1.2.0
 - @standardnotes/scheduler-server@1.5.0
 - @standardnotes/security@1.2.0
 - @standardnotes/syncing-server@1.5.0
2022-07-06 10:04:10 +00:00
Karol Sójko
fd4ee2123d feat: add common package 2022-07-06 12:02:39 +02:00
standardci
62caa840ef chore(release): publish new version
- @standardnotes/api-gateway@1.6.0
 - @standardnotes/auth-server@1.7.0
 - @standardnotes/files-server@1.3.0
 - @standardnotes/scheduler-server@1.4.0
 - @standardnotes/syncing-server@1.4.0
 - @standardnotes/time@1.9.0
2022-07-06 09:47:24 +00:00
Karol Sójko
565e890973 feat: add time package 2022-07-06 11:46:04 +02:00
standardci
84c4642ced chore(release): publish new version
- @standardnotes/api-gateway@1.5.0
 - @standardnotes/auth-server@1.6.0
 - @standardnotes/domain-events-infra@1.7.4
 - @standardnotes/domain-events@2.38.0
 - @standardnotes/files-server@1.2.0
 - @standardnotes/scheduler-server@1.3.2
 - @standardnotes/security@1.1.0
 - @standardnotes/syncing-server@1.3.0
2022-07-06 09:28:38 +00:00
Karol Sójko
699164eba5 fix: deps to @standarnotes/security 2022-07-06 11:27:19 +02:00
Karol Sójko
d86928f1b4 feat: add security package 2022-07-06 11:24:32 +02:00
553 changed files with 7693 additions and 8774 deletions

142
.github/dependabot.yml vendored Normal file
View File

@@ -0,0 +1,142 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/analytics"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/api-gateway"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/auth"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/common"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/domain-events"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/domain-events-infra"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/event-store"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/files"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/predicates"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/scheduler"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/security"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/settings"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/sncrypto-node"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/syncing-server"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "npm"
directory: "/packages/time"
schedule:
interval: "daily"
reviewers:
- "moughxyz"
- "karolsojko"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
reviewers:
- "moughxyz"
- "karolsojko"

View File

@@ -16,13 +16,42 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
- run: yarn build
- run: yarn lint:api-gateway
- name: Build
run: yarn build
- name: Lint
run: yarn lint:api-gateway
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish Docker image for E2E testing
run: |
yarn docker build @standardnotes/api-gateway -t standardnotes/api-gateway:${{ github.sha }}
docker push standardnotes/api-gateway:${{ github.sha }}
- name: Run E2E test suite
uses: convictional/trigger-workflow-and-wait@v1.6.3
with:
owner: standardnotes
repo: e2e
github_token: ${{ secrets.CI_PAT_TOKEN }}
workflow_file_name: testing-with-stable-client.yml
wait_interval: 30
client_payload: '{"api_gateway_image_tag": "${{ github.sha }}"}'
propagate_failure: true
trigger_workflow: true
wait_workflow: true
publish-aws-ecr:
needs: test
@@ -68,11 +97,9 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build, tag, and push image to Docker Hub
- name: Publish Docker image as stable
run: |
yarn docker build @standardnotes/api-gateway -t standardnotes/api-gateway:${{ github.sha }}
docker push standardnotes/api-gateway:${{ github.sha }}
docker tag standardnotes/api-gateway:${{ github.sha }} standardnotes/api-gateway:latest
yarn docker build @standardnotes/api-gateway -t standardnotes/api-gateway:latest
docker push standardnotes/api-gateway:latest
deploy-web:
@@ -87,40 +114,20 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: DEV - Download task definition
run: |
aws ecs describe-task-definition --task-definition api-gateway-dev --query taskDefinition > task-definition.json
- name: DEV - Fill in the new version in the Amazon ECS task definition
run: |
jq '(.containerDefinitions[] | select(.name=="api-gateway-dev") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
- name: DEV - Fill in the new image ID in the Amazon ECS task definition
id: task-def-dev
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: api-gateway-dev
image: ${{ secrets.AWS_ECR_REGISTRY }}/api-gateway:${{ github.sha }}
- name: DEV - Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def-dev.outputs.task-definition }}
service: api-gateway-dev
cluster: dev
wait-for-service-stability: true
- name: PROD - Download task definition
- name: Download task definition
run: |
aws ecs describe-task-definition --task-definition api-gateway-prod --query taskDefinition > task-definition.json
- name: PROD - Fill in the new version in the Amazon ECS task definition
- name: Fill in the new version in the Amazon ECS task definition
run: |
jq '(.containerDefinitions[] | select(.name=="api-gateway-prod") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
- name: PROD - Fill in the new image ID in the Amazon ECS task definition
- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def-prod
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: api-gateway-prod
image: ${{ secrets.AWS_ECR_REGISTRY }}/api-gateway:${{ github.sha }}
- name: PROD - Deploy Amazon ECS task definition
- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def-prod.outputs.task-definition }}

View File

@@ -16,14 +16,45 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
- run: yarn build
- run: yarn lint:auth
- run: yarn test:auth
- name: Build
run: yarn build
- name: Lint
run: yarn lint:auth
- name: Test
run: yarn test:auth
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish Docker image for E2E testing
run: |
yarn docker build @standardnotes/auth-server -t standardnotes/auth:${{ github.sha }}
docker push standardnotes/auth:${{ github.sha }}
- name: Run E2E test suite
uses: convictional/trigger-workflow-and-wait@v1.6.3
with:
owner: standardnotes
repo: e2e
github_token: ${{ secrets.CI_PAT_TOKEN }}
workflow_file_name: testing-with-stable-client.yml
wait_interval: 30
client_payload: '{"auth_image_tag": "${{ github.sha }}"}'
propagate_failure: true
trigger_workflow: true
wait_workflow: true
publish-aws-ecr:
needs: test
@@ -69,11 +100,9 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build, tag, and push image to Docker Hub
- name: Publish Docker image as stable
run: |
yarn docker build @standardnotes/auth-server -t standardnotes/auth:${{ github.sha }}
docker push standardnotes/auth:${{ github.sha }}
docker tag standardnotes/auth:${{ github.sha }} standardnotes/auth:latest
yarn docker build @standardnotes/auth-server -t standardnotes/auth:latest
docker push standardnotes/auth:latest
deploy-web:
@@ -88,40 +117,20 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: DEV - Download task definition
run: |
aws ecs describe-task-definition --task-definition auth-dev --query taskDefinition > task-definition.json
- name: DEV - Fill in the new version in the Amazon ECS task definition
run: |
jq '(.containerDefinitions[] | select(.name=="auth-dev") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
- name: DEV - Fill in the new image ID in the Amazon ECS task definition
id: task-def-dev
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: auth-dev
image: ${{ secrets.AWS_ECR_REGISTRY }}/auth:${{ github.sha }}
- name: DEV - Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def-dev.outputs.task-definition }}
service: auth-dev
cluster: dev
wait-for-service-stability: true
- name: PROD - Download task definition
- name: Download task definition
run: |
aws ecs describe-task-definition --task-definition auth-prod --query taskDefinition > task-definition.json
- name: PROD - Fill in the new version in the Amazon ECS task definition
- name: Fill in the new version in the Amazon ECS task definition
run: |
jq '(.containerDefinitions[] | select(.name=="auth-prod") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
- name: PROD - Fill in the new image ID in the Amazon ECS task definition
- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def-prod
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: auth-prod
image: ${{ secrets.AWS_ECR_REGISTRY }}/auth:${{ github.sha }}
- name: PROD - Deploy Amazon ECS task definition
- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def-prod.outputs.task-definition }}
@@ -141,40 +150,20 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: DEV - Download task definition
run: |
aws ecs describe-task-definition --task-definition auth-worker-dev --query taskDefinition > task-definition.json
- name: DEV - Fill in the new version in the Amazon ECS task definition
run: |
jq '(.containerDefinitions[] | select(.name=="auth-worker-dev") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
- name: DEV - Fill in the new image ID in the Amazon ECS task definition
id: task-def-dev
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: auth-worker-dev
image: ${{ secrets.AWS_ECR_REGISTRY }}/auth:${{ github.sha }}
- name: DEV - Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def-dev.outputs.task-definition }}
service: auth-worker-dev
cluster: dev
wait-for-service-stability: true
- name: PROD - Download task definition
- name: Download task definition
run: |
aws ecs describe-task-definition --task-definition auth-worker-prod --query taskDefinition > task-definition.json
- name: PROD - Fill in the new version in the Amazon ECS task definition
- name: Fill in the new version in the Amazon ECS task definition
run: |
jq '(.containerDefinitions[] | select(.name=="auth-worker-prod") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
- name: PROD - Fill in the new image ID in the Amazon ECS task definition
- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def-prod
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: auth-worker-prod
image: ${{ secrets.AWS_ECR_REGISTRY }}/auth:${{ github.sha }}
- name: PROD - Deploy Amazon ECS task definition
- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def-prod.outputs.task-definition }}

View File

@@ -0,0 +1,126 @@
name: Event Store
concurrency:
group: event-store
cancel-in-progress: true
on:
push:
tags:
- '*standardnotes/event-store*'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
- run: yarn build
- run: yarn lint:event-store
- run: yarn test:event-store
publish-aws-ecr:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build locally
run: yarn build
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- name: Build, tag, and push image to Amazon ECR
id: build-image
env:
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: event-store
IMAGE_TAG: ${{ github.sha }}
run: |
yarn docker build @standardnotes/event-store -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG $ECR_REGISTRY/$ECR_REPOSITORY:latest
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
publish-docker-hub:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build locally
run: yarn build
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build, tag, and push image to Docker Hub
run: |
yarn docker build @standardnotes/event-store -t standardnotes/event-store:${{ github.sha }}
docker push standardnotes/event-store:${{ github.sha }}
docker tag standardnotes/event-store:${{ github.sha }} standardnotes/event-store:latest
docker push standardnotes/event-store:latest
deploy-worker:
needs: publish-aws-ecr
runs-on: ubuntu-latest
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Download task definition
run: |
aws ecs describe-task-definition --task-definition event-store-prod --query taskDefinition > task-definition.json
- name: Fill in the new version in the Amazon ECS task definition
run: |
jq '(.containerDefinitions[] | select(.name=="event-store-prod") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def-prod
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: event-store-prod
image: ${{ secrets.AWS_ECR_REGISTRY }}/event-store:${{ github.sha }}
- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def-prod.outputs.task-definition }}
service: event-store-prod
cluster: prod
wait-for-service-stability: true
newrelic:
needs: [ deploy-worker ]
runs-on: ubuntu-latest
steps:
- name: Create New Relic deployment marker for Worker
uses: newrelic/deployment-marker-action@v1
with:
accountId: ${{ secrets.NEW_RELIC_ACCOUNT_ID }}
apiKey: ${{ secrets.NEW_RELIC_API_KEY }}
applicationId: ${{ secrets.NEW_RELIC_APPLICATION_ID_EVENT_STORE_PROD }}
revision: "${{ github.sha }}"
description: "Automated Deployment via Github Actions"
user: "${{ github.actor }}"

View File

@@ -16,14 +16,45 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
- run: yarn build
- run: yarn lint:files
- run: yarn test:files
- name: Build
run: yarn build
- name: Lint
run: yarn lint:files
- name: Test
run: yarn test:files
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish Docker image for E2E testing
run: |
yarn docker build @standardnotes/files-server -t standardnotes/files:${{ github.sha }}
docker push standardnotes/files:${{ github.sha }}
- name: Run E2E test suite
uses: convictional/trigger-workflow-and-wait@v1.6.3
with:
owner: standardnotes
repo: e2e
github_token: ${{ secrets.CI_PAT_TOKEN }}
workflow_file_name: testing-with-stable-client.yml
wait_interval: 30
client_payload: '{"files_image_tag": "${{ github.sha }}"}'
propagate_failure: true
trigger_workflow: true
wait_workflow: true
publish-aws-ecr:
needs: test
@@ -71,9 +102,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build, tag, and push image to Docker Hub
run: |
yarn docker build @standardnotes/files-server -t standardnotes/files:${{ github.sha }}
docker push standardnotes/files:${{ github.sha }}
docker tag standardnotes/files:${{ github.sha }} standardnotes/files:latest
yarn docker build @standardnotes/files-server -t standardnotes/files:latest
docker push standardnotes/files:latest
deploy-web:
@@ -88,40 +117,20 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: DEV - Download task definition
run: |
aws ecs describe-task-definition --task-definition files-dev --query taskDefinition > task-definition.json
- name: DEV - Fill in the new version in the Amazon ECS task definition
run: |
jq '(.containerDefinitions[] | select(.name=="files-dev") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
- name: DEV - Fill in the new image ID in the Amazon ECS task definition
id: task-def-dev
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: files-dev
image: ${{ secrets.AWS_ECR_REGISTRY }}/files:${{ github.sha }}
- name: DEV - Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def-dev.outputs.task-definition }}
service: files-dev
cluster: dev
wait-for-service-stability: true
- name: PROD - Download task definition
- name: Download task definition
run: |
aws ecs describe-task-definition --task-definition files-prod --query taskDefinition > task-definition.json
- name: PROD - Fill in the new version in the Amazon ECS task definition
- name: Fill in the new version in the Amazon ECS task definition
run: |
jq '(.containerDefinitions[] | select(.name=="files-prod") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
- name: PROD - Fill in the new image ID in the Amazon ECS task definition
- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def-prod
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: files-prod
image: ${{ secrets.AWS_ECR_REGISTRY }}/files:${{ github.sha }}
- name: PROD - Deploy Amazon ECS task definition
- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def-prod.outputs.task-definition }}
@@ -141,40 +150,20 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: DEV - Download task definition
run: |
aws ecs describe-task-definition --task-definition files-worker-dev --query taskDefinition > task-definition.json
- name: DEV - Fill in the new version in the Amazon ECS task definition
run: |
jq '(.containerDefinitions[] | select(.name=="files-worker-dev") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
- name: DEV - Fill in the new image ID in the Amazon ECS task definition
id: task-def-dev
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: files-worker-dev
image: ${{ secrets.AWS_ECR_REGISTRY }}/files:${{ github.sha }}
- name: DEV - Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def-dev.outputs.task-definition }}
service: files-worker-dev
cluster: dev
wait-for-service-stability: true
- name: PROD - Download task definition
- name: Download task definition
run: |
aws ecs describe-task-definition --task-definition files-worker-prod --query taskDefinition > task-definition.json
- name: PROD - Fill in the new version in the Amazon ECS task definition
- name: Fill in the new version in the Amazon ECS task definition
run: |
jq '(.containerDefinitions[] | select(.name=="files-worker-prod") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
- name: PROD - Fill in the new image ID in the Amazon ECS task definition
- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def-prod
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: files-worker-prod
image: ${{ secrets.AWS_ECR_REGISTRY }}/files:${{ github.sha }}
- name: PROD - Deploy Amazon ECS task definition
- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def-prod.outputs.task-definition }}

View File

@@ -88,40 +88,20 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: DEV - Download task definition
run: |
aws ecs describe-task-definition --task-definition scheduler-worker-dev --query taskDefinition > task-definition.json
- name: DEV - Fill in the new version in the Amazon ECS task definition
run: |
jq '(.containerDefinitions[] | select(.name=="scheduler-worker-dev") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
- name: DEV - Fill in the new image ID in the Amazon ECS task definition
id: task-def-dev
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: scheduler-worker-dev
image: ${{ secrets.AWS_ECR_REGISTRY }}/scheduler-worker:${{ github.sha }}
- name: DEV - Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def-dev.outputs.task-definition }}
service: scheduler-worker-dev
cluster: dev
wait-for-service-stability: true
- name: PROD - Download task definition
- name: Download task definition
run: |
aws ecs describe-task-definition --task-definition scheduler-worker-prod --query taskDefinition > task-definition.json
- name: PROD - Fill in the new version in the Amazon ECS task definition
- name: Fill in the new version in the Amazon ECS task definition
run: |
jq '(.containerDefinitions[] | select(.name=="scheduler-worker-prod") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
- name: PROD - Fill in the new image ID in the Amazon ECS task definition
- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def-prod
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: scheduler-worker-prod
image: ${{ secrets.AWS_ECR_REGISTRY }}/scheduler-worker:${{ github.sha }}
- name: PROD - Deploy Amazon ECS task definition
- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def-prod.outputs.task-definition }}

View File

@@ -16,14 +16,45 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
- run: yarn build
- run: yarn lint:syncing-server
- run: yarn test:syncing-server
- name: Build
run: yarn build
- name: Lint
run: yarn lint:syncing-server
- name: Test
run: yarn test:syncing-server
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Publish Docker image for E2E testing
run: |
yarn docker build @standardnotes/syncing-server -t standardnotes/syncing-server-js:${{ github.sha }}
docker push standardnotes/syncing-server-js:${{ github.sha }}
- name: Run E2E test suite
uses: convictional/trigger-workflow-and-wait@v1.6.3
with:
owner: standardnotes
repo: e2e
github_token: ${{ secrets.CI_PAT_TOKEN }}
workflow_file_name: testing-with-stable-client.yml
wait_interval: 30
client_payload: '{"syncing_server_js_image_tag": "${{ github.sha }}"}'
propagate_failure: true
trigger_workflow: true
wait_workflow: true
publish-aws-ecr:
needs: test
@@ -71,9 +102,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build, tag, and push image to Docker Hub
run: |
yarn docker build @standardnotes/syncing-server -t standardnotes/syncing-server-js:${{ github.sha }}
docker push standardnotes/syncing-server-js:${{ github.sha }}
docker tag standardnotes/syncing-server-js:${{ github.sha }} standardnotes/syncing-server-js:latest
yarn docker build @standardnotes/syncing-server -t standardnotes/syncing-server-js:latest
docker push standardnotes/syncing-server-js:latest
deploy-web:
@@ -88,40 +117,20 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: DEV - Download task definition
run: |
aws ecs describe-task-definition --task-definition syncing-server-js-dev --query taskDefinition > task-definition.json
- name: DEV - Fill in the new version in the Amazon ECS task definition
run: |
jq '(.containerDefinitions[] | select(.name=="syncing-server-js-dev") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
- name: DEV - Fill in the new image ID in the Amazon ECS task definition
id: task-def-dev
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: syncing-server-js-dev
image: ${{ secrets.AWS_ECR_REGISTRY }}/syncing-server-js:${{ github.sha }}
- name: DEV - Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def-dev.outputs.task-definition }}
service: syncing-server-js-dev
cluster: dev
wait-for-service-stability: true
- name: PROD - Download task definition
- name: Download task definition
run: |
aws ecs describe-task-definition --task-definition syncing-server-js-prod --query taskDefinition > task-definition.json
- name: PROD - Fill in the new version in the Amazon ECS task definition
- name: Fill in the new version in the Amazon ECS task definition
run: |
jq '(.containerDefinitions[] | select(.name=="syncing-server-js-prod") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
- name: PROD - Fill in the new image ID in the Amazon ECS task definition
- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def-prod
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: syncing-server-js-prod
image: ${{ secrets.AWS_ECR_REGISTRY }}/syncing-server-js:${{ github.sha }}
- name: PROD - Deploy Amazon ECS task definition
- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def-prod.outputs.task-definition }}
@@ -141,40 +150,20 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: DEV - Download task definition
run: |
aws ecs describe-task-definition --task-definition syncing-server-js-worker-dev --query taskDefinition > task-definition.json
- name: DEV - Fill in the new version in the Amazon ECS task definition
run: |
jq '(.containerDefinitions[] | select(.name=="syncing-server-js-worker-dev") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
- name: DEV - Fill in the new image ID in the Amazon ECS task definition
id: task-def-dev
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: syncing-server-js-worker-dev
image: ${{ secrets.AWS_ECR_REGISTRY }}/syncing-server-js:${{ github.sha }}
- name: DEV - Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def-dev.outputs.task-definition }}
service: syncing-server-js-worker-dev
cluster: dev
wait-for-service-stability: true
- name: PROD - Download task definition
- name: Download task definition
run: |
aws ecs describe-task-definition --task-definition syncing-server-js-worker-prod --query taskDefinition > task-definition.json
- name: PROD - Fill in the new version in the Amazon ECS task definition
- name: Fill in the new version in the Amazon ECS task definition
run: |
jq '(.containerDefinitions[] | select(.name=="syncing-server-js-worker-prod") | .environment[] | select(.name=="VERSION")).value = "${{ github.sha }}"' task-definition.json > tmp.json && mv tmp.json task-definition.json
- name: PROD - Fill in the new image ID in the Amazon ECS task definition
- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def-prod
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: syncing-server-js-worker-prod
image: ${{ secrets.AWS_ECR_REGISTRY }}/syncing-server-js:${{ github.sha }}
- name: PROD - Deploy Amazon ECS task definition
- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def-prod.outputs.task-definition }}

3128
.pnp.cjs generated

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More