ConfigurationTriggers
Matrix
The matrix trigger posts container update notifications to a Matrix room using the client-server API.
The matrix trigger posts container update notifications to a Matrix room using the client-server API.
Variables
| Env var | Required | Description | Supported values | Default value when missing |
|---|---|---|---|---|
DD_TRIGGER_MATRIX_{trigger_name}_URL | 🔴 | Matrix homeserver URL | http, https URL | |
DD_TRIGGER_MATRIX_{trigger_name}_ROOMID | 🔴 | Target room ID | Room ID (for example !abc123:matrix.org) | |
DD_TRIGGER_MATRIX_{trigger_name}_ACCESSTOKEN | 🔴 | Access token for authentication | String | |
DD_TRIGGER_MATRIX_{trigger_name}_MSGTYPE | ⚪ | Message type | m.notice, m.text | m.notice |
DD_TRIGGER_MATRIX_{trigger_name}_DISABLETITLE | ⚪ | Disable title to keep full message-body control | true, false | false |
This trigger also supports the common configuration variables.
See the Matrix client-server API documentation for details on sending events.
Examples
services:
drydock:
image: codeswhat/drydock
...
environment:
- DD_TRIGGER_MATRIX_LOCAL_URL=https://matrix.example.com
- DD_TRIGGER_MATRIX_LOCAL_ROOMID=!abc123:matrix.example.com
- DD_TRIGGER_MATRIX_LOCAL_ACCESSTOKEN=syt_xxxdocker run \
-e DD_TRIGGER_MATRIX_LOCAL_URL="https://matrix.example.com" \
-e DD_TRIGGER_MATRIX_LOCAL_ROOMID="!abc123:matrix.example.com" \
-e DD_TRIGGER_MATRIX_LOCAL_ACCESSTOKEN="syt_xxx" \
...
codeswhat/drydock