about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tools/gerrit-hook/README.org12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/gerrit-hook/README.org b/tools/gerrit-hook/README.org
new file mode 100644
index 0000000..d7146d8
--- /dev/null
+++ b/tools/gerrit-hook/README.org
@@ -0,0 +1,12 @@
+#+TITLE: gerrit-hook
+
+A hook for gerrit.
+
+* Configuring the gerrit user
+First create the account with =rgerrit create-account CI=.
+
+Next we need to generate the HTTP password for the user, this can be done with =gerrit set-account CI --generate-http-password=.
+
+Store the password in the file [[file:~/workspace/world/hosts/tahoe/secrets/gerrit/hooks.age][gerrit/hook.age]]
+* Configuring the buildKite API key
+You can obtain API token by going to this [[https://buildkite.com/user/api-access-tokens][page]]. Store the API token in the same file as the gerrit user.