diff --git a/README.md b/README.md index d50a39c33f94c326c9829fd8c77a800c5090e7fd..ac2b0746b8a7670924644671a85dcca1a2d73f25 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Maunium GitLab bot ================== A Gitlab bot for Matrix. It uses -[mautrix](https://github.com/tulir/mautrix), +[mautrix](https://github.com/tulir/mautrix-go/tree/legacy), [go-playground webhooks](https://github.com/go-playground/webhooks) and [go-gitlab](https://github.com/xanzy/go-gitlab) @@ -30,9 +30,18 @@ Matrix room: [#maulabbot:maunium.net](https://matrix.to/#/#maulabbot:maunium.net * [ ] Shorter commands ## Usage -Configure the server by copying `example-config.json` to `config.json` and +Configure the bot by copying `example-config.json` to `config.json` and filling out the fields. +### Docker +0. Create a directory for the bot and cd into it. +1. Pull the docker image with `docker pull docker.io/maubot/gitlab:latest`. +2. Make a config file as described above +3. Run the bot: + ``` + docker run --restart unless-stopped -v `pwd`:/etc/maulabbot:z docker.io/maubot/gitlab:latest + ``` + ### Webhooks When adding a GitLab webhook, add the internal room ID as a query string in the field `room`. For example, if the address + path is `https://example.com/webhook`,