Go to file
Thomas Boerger 51e2469d51
Merge pull request #15 from drone-plugins/improve-config
Drop renovate, proper version definition, unified jsonnet config
2019-03-28 09:33:48 +01:00
.github Add some basic issue template content 2019-01-21 21:02:10 +01:00
docker Fix manifest template helper 2019-02-25 22:20:37 +01:00
.dockerignore Applied default structure and added some sugar 2018-01-08 09:54:30 +01:00
.drone.jsonnet Add a reliable version and integrate libsonnet definition 2019-02-15 10:19:10 +01:00
.drone.windows.jsonnet Add a reliable version and integrate libsonnet definition 2019-02-15 10:19:10 +01:00
.drone.windows.yml Add a reliable version and integrate libsonnet definition 2019-02-15 10:19:10 +01:00
.drone.yml Add a reliable version and integrate libsonnet definition 2019-02-15 10:19:10 +01:00
.gitignore Updated to current build process 2018-03-16 13:18:54 +01:00
go.mod Replace godep with gomod 2019-02-18 23:19:32 +01:00
go.sum Replace godep with gomod 2019-02-18 23:19:32 +01:00
LICENSE Relicense 2018-01-03 13:57:00 +02:00
main.go Drop import of unused fmt package 2019-02-18 23:47:41 +01:00
pipeline.libsonnet Add a reliable version and integrate libsonnet definition 2019-02-15 10:19:10 +01:00
plugin.go Prefix room ids automatically with exclamation mark (#12) 2018-09-25 18:42:25 -04:00
README.md Unified documentation and readme 2019-02-15 11:58:34 +01:00

drone-matrix

Build Status Gitter chat Join the discussion at https://discourse.drone.io Drone questions at https://stackoverflow.com Go Doc Go Report

Drone plugin for sending build notifications to Matrix. For the usage information and a listing of the available options please take a look at the docs.

Build

Build the binary with the following command:

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

go build -v -a -tags netgo -o release/linux/amd64/drone-matrix

Docker

Build the Docker image with the following command:

docker build \
  --label org.label-schema.build-date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
  --label org.label-schema.vcs-ref=$(git rev-parse --short HEAD) \
  --file docker/Dockerfile.linux.amd64 --tag plugins/matrix .

Usage

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