drone-matrix/content/_index.md
Robert Kaussow 5724adf7d3 commit b6167f04ae
Author: Robert Kaussow <mail@thegeeklab.de>
Date:   Thu Nov 24 15:09:28 2022 +0100

    docs: fix properties file syntax due to changes in the theme (#80)
2022-11-24 14:20:56 +00:00

2.0 KiB

title
drone-matrix

Build Status Docker Hub Quay.io GitHub contributors Source: GitHub License: MIT

Drone plugin to to send messages to a Matrix room.

{{< toc >}}

Usage

kind: pipeline
name: default

steps:
- name: notify
  image: thegeeklab/matrix
  settings:
    homeserver: https://matrix.org
    roomid: abcdefghijklmnopqrstuvwxyz:matrix.org
    username: octocat
    password: secret

Parameters

{{< propertylist name=drone-matrix.data sort=name >}}

Build

Build the binary with the following command:

export GOOS=linux
export GOARCH=amd64
export CGO_ENABLED=0
export GO111MODULE=on

make build

Build the Docker image with the following command:

docker build --file docker/Dockerfile.amd64 --tag thegeeklab/drone-matrix .

Test

docker run --rm \
  -e PLUGIN_ROOMID=0123456789abcdef:matrix.org \
  -e PLUGIN_USERNAME=yourbot \
  -e PLUGIN_PASSWORD=p455w0rd \
  -v $(pwd):$(pwd) \
  -w $(pwd) \
  thegeeklab/drone-matrix