From 1214c6137a990d94bef85e7595ea08e13bc93471 Mon Sep 17 00:00:00 2001 From: PiotrKozimor <37144818+PiotrKozimor@users.noreply.github.com> Date: Mon, 4 Jul 2022 18:07:55 +0200 Subject: [PATCH] CD with GCP cloud builds (#12) * Setup CD on GCP * Squashed commit of the following: commit 7823481a0e70c9b55ffd261c87310aad138df4e3 Author: PiotrKozimor <37144818+PiotrKozimor@users.noreply.github.com> Date: Mon Jul 4 17:39:22 2022 +0200 Merge v0.8.9 (#13) Squashed commit of the following: commit b5c55faf9886bd66a33e5555ad0bb20465bf08f7 Author: Neil Alexander Date: Fri Jul 1 12:00:32 2022 +0100 Version 0.8.9 (#2549) * Version 0.8.9 * Update changelog commit b50a24c666c4c45e1410dfc35d5ab2dc7e530a0f Author: Neil Alexander Date: Fri Jul 1 10:54:07 2022 +0100 Roomserver producers package (#2546) * Give the roomserver a producers package * Change init point * Populate ACLs API * Fix build issues * `RoomEventProducer` naming commit 89cd0e8fc13b040470aebe2eb4d36a9235b1473d Author: Till <2353100+S7evinK@users.noreply.github.com> Date: Fri Jul 1 11:49:26 2022 +0200 Try to fix backfilling (#2548) * Try to fix backfilling * Return start/end to not confuse clients * Update GMSL * Update GMSL commit 086f182e24e0651d1320199e90215f280350ef44 Author: Neil Alexander Date: Fri Jul 1 09:50:06 2022 +0100 Disable WebAssembly builds for now commit 54bed4c5937c82e8565ed7839d711dc498848500 Author: Neil Alexander Date: Fri Jul 1 09:37:54 2022 +0100 Blacklist `Guest users can join guest_access rooms` test until it can be investigated commit 561c159ad71d49da1eb16c492ef3e53fa876480b Author: Till <2353100+S7evinK@users.noreply.github.com> Date: Thu Jun 30 12:34:37 2022 +0200 Silence presence logs (#2547) commit 519bc1124b051273019aae9b11617ebd796e962f Author: Neil Alexander Date: Wed Jun 29 15:29:39 2022 +0100 Add `evacuateUser` endpoint, use it when deactivating accounts (#2545) * Add `evacuateUser` endpoint, use it when deactivating accounts * Populate the API * Clean up user devices when deactivating * Include invites, delete pushers commit 2dea466685d0d4ab74d4cbd84af16b621d1269b3 Author: Neil Alexander Date: Wed Jun 29 12:32:24 2022 +0100 Return an error if trying to invite a malformed user ID (#2543) commit 2086992caf67d033c42db3fb6bc5c2a294e72bfe Author: Till <2353100+S7evinK@users.noreply.github.com> Date: Wed Jun 29 10:49:12 2022 +0200 Don't return `end` if there are not more messages (#2542) * Be more spec compliant * Move lazyLoadMembers to own method commit 920a20821ba55a22248c5f78bb76b615fec60a7a Author: Jean Lucas Date: Mon Jun 27 04:15:19 2022 -0400 Fix nats.go commit (#2540) Signed-off-by: Jean Lucas commit 7120eb6bc943af6f725b0c61cfd110330f04064a Author: Neil Alexander Date: Wed Jun 15 14:27:07 2022 +0100 Add `InputDeviceListUpdate` to the keyserver, remove old input API (#2536) * Add `InputDeviceListUpdate` to the keyserver, remove old input API * Fix copyright * Log more information when a device list update fails commit 1b90cc95367947fa00616b4426d0c894b33c9862 Author: Till <2353100+S7evinK@users.noreply.github.com> Date: Wed Jun 15 12:50:02 2022 +0200 Fix rare panic when returning user devices over federation (#2534) commit 4c2a10f1a61a79ed8bbe17af1b28532c3d24c261 Author: Neil Alexander Date: Mon Jun 13 15:11:10 2022 +0100 Handle state before, send history visibility in output (#2532) * Check state before event * Tweaks * Refactor a bit, include in output events * Don't waste time if soft failed either * Tweak control flow, comments, use GMSL history visibility type commit c50095858341cc051e2db97fb85a1bb985f90c66 Author: Emanuele Aliberti Date: Mon Jun 13 13:08:46 2022 +0200 generic CaddyFile in front of Dendrite (monolith) (#2531) for Caddy 2.5.x Co-authored-by: emanuele.aliberti commit e1136f4d3e372f9c0b8a309a387193621a53ae6d Author: Till Faelligen Date: Mon Jun 13 11:46:59 2022 +0200 Make the linter happy again commit 0a7f7dc716a25b1071bacc16cb91b31441174453 Author: Neil Alexander Date: Mon Jun 13 10:16:30 2022 +0100 Add `--difference` to `resolve-state` tool commit 89d2adadbdef4ce62338d55d56b58fa58055d495 Author: Neil Alexander Date: Fri Jun 10 10:58:04 2022 +0100 Attempt to raise the file descriptor limit at startup (#2527) commit 10300722859ba345b8b21980e39a8a7022e6d35b Author: Neil Alexander Date: Fri Jun 10 10:18:32 2022 +0100 Rename the page to "Optimise your installation" commit 16ed1633b6f50da7a865ae7a09b03168fd496c4f Author: Neil Alexander Date: Fri Jun 10 10:15:14 2022 +0100 Highlighting in docs commit e2a64773cef3ed22544990e7e04daf91a80a473e Author: Neil Alexander Date: Fri Jun 10 10:14:15 2022 +0100 Add new next steps page to the documentation commit 660f7839f52f319a205dc61b96e43c730e5cb91a Author: Till <2353100+S7evinK@users.noreply.github.com> Date: Thu Jun 9 18:38:07 2022 +0200 Correctly redact events over federation (#2526) * Ensure we check powerlevel/origin before redacting an event * Add passing test * Use pl.UserLevel * Make check more readable, also check for the sender --- .cloudbuild/dev.yaml | 12 ++++++++++++ .gitignore | 1 + 2 files changed, 13 insertions(+) create mode 100644 .cloudbuild/dev.yaml diff --git a/.cloudbuild/dev.yaml b/.cloudbuild/dev.yaml new file mode 100644 index 000000000..2fe246b14 --- /dev/null +++ b/.cloudbuild/dev.yaml @@ -0,0 +1,12 @@ +steps: + - name: gcr.io/cloud-builders/docker + args: ['build', '-t', 'gcr.io/$PROJECT_ID/dendrite-monolith:$COMMIT_SHA', '-f', 'build/docker/Dockerfile.monolith', '.'] + - name: gcr.io/cloud-builders/kubectl + args: ['-n', 'dendrite', 'set', 'image', 'deployment/dendrite', 'dendrite=gcr.io/$PROJECT_ID/dendrite-monolith:$COMMIT_SHA'] + env: + - CLOUDSDK_CORE_PROJECT=globekeeper-development + - CLOUDSDK_COMPUTE_ZONE=europe-west2-a + - CLOUDSDK_CONTAINER_CLUSTER=synapse +images: + - gcr.io/$PROJECT_ID/dendrite-monolith:$COMMIT_SHA +timeout: 300s diff --git a/.gitignore b/.gitignore index 63116857a..662d3ae97 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ # Hidden files .* !.vscode +!.cloudbuild # Allow GitHub config !.github