2021-09-13 21:00:00 +00:00
|
|
|
---
|
2023-08-15 22:15:24 +00:00
|
|
|
title: wp-matrix
|
2021-09-13 21:00:00 +00:00
|
|
|
---
|
|
|
|
|
2023-08-15 22:15:24 +00:00
|
|
|
[![Build Status](https://ci.thegeeklab.de/api/badges/thegeeklab/wp-matrix/status.svg)](https://ci.thegeeklab.de/repos/thegeeklab/wp-matrix)
|
|
|
|
[![Docker Hub](https://img.shields.io/badge/dockerhub-latest-blue.svg?logo=docker&logoColor=white)](https://hub.docker.com/r/thegeeklab/wp-matrix)
|
|
|
|
[![Quay.io](https://img.shields.io/badge/quay-latest-blue.svg?logo=docker&logoColor=white)](https://quay.io/repository/thegeeklab/wp-matrix)
|
|
|
|
[![Go Report Card](https://goreportcard.com/badge/github.com/thegeeklab/wp-matrix)](https://goreportcard.com/report/github.com/thegeeklab/wp-matrix)
|
|
|
|
[![GitHub contributors](https://img.shields.io/github/contributors/thegeeklab/wp-matrix)](https://github.com/thegeeklab/wp-matrix/graphs/contributors)
|
|
|
|
[![Source: GitHub](https://img.shields.io/badge/source-github-blue.svg?logo=github&logoColor=white)](https://github.com/thegeeklab/wp-matrix)
|
|
|
|
[![License: Apache-2.0](https://img.shields.io/github/license/thegeeklab/wp-matrix)](https://github.com/thegeeklab/wp-matrix/blob/main/LICENSE)
|
2021-09-13 21:00:00 +00:00
|
|
|
|
2023-08-15 22:15:24 +00:00
|
|
|
Woodpecker CI plugin to send messages to a Matrix room.
|
2021-09-13 21:00:00 +00:00
|
|
|
|
|
|
|
<!-- prettier-ignore-start -->
|
|
|
|
<!-- spellchecker-disable -->
|
|
|
|
{{< toc >}}
|
|
|
|
<!-- spellchecker-enable -->
|
|
|
|
<!-- prettier-ignore-end -->
|
|
|
|
|
2022-05-28 13:24:23 +00:00
|
|
|
## Usage
|
|
|
|
|
|
|
|
```YAML
|
|
|
|
steps:
|
|
|
|
- name: notify
|
2024-01-03 22:04:03 +00:00
|
|
|
image: quay.io/thegeeklab/matrix
|
2022-05-28 13:24:23 +00:00
|
|
|
settings:
|
|
|
|
homeserver: https://matrix.org
|
2024-03-12 19:43:35 +00:00
|
|
|
roomid: randomstring:matrix.org
|
2022-05-28 13:24:23 +00:00
|
|
|
username: octocat
|
2024-03-12 19:43:35 +00:00
|
|
|
password: random-secret
|
2022-05-28 13:24:23 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Parameters
|
|
|
|
|
|
|
|
<!-- prettier-ignore-start -->
|
|
|
|
<!-- spellchecker-disable -->
|
2023-08-15 22:15:24 +00:00
|
|
|
{{< propertylist name=wp-matrix.data sort=name >}}
|
2022-05-28 13:24:23 +00:00
|
|
|
<!-- spellchecker-enable -->
|
|
|
|
<!-- prettier-ignore-end -->
|
|
|
|
|
2021-09-13 21:00:00 +00:00
|
|
|
## Build
|
|
|
|
|
|
|
|
Build the binary with the following command:
|
|
|
|
|
|
|
|
```Shell
|
2022-04-25 10:55:06 +00:00
|
|
|
make build
|
2021-09-13 21:00:00 +00:00
|
|
|
```
|
|
|
|
|
2023-08-15 22:15:24 +00:00
|
|
|
Build the container image with the following command:
|
2021-09-13 21:00:00 +00:00
|
|
|
|
|
|
|
```Shell
|
2023-08-15 22:15:24 +00:00
|
|
|
docker build --file Containerfile.multiarch --tag thegeeklab/wp-matrix .
|
2021-09-13 21:00:00 +00:00
|
|
|
```
|
|
|
|
|
2022-05-28 13:24:23 +00:00
|
|
|
## Test
|
2021-09-13 21:00:00 +00:00
|
|
|
|
|
|
|
```Shell
|
|
|
|
docker run --rm \
|
2024-03-12 19:43:35 +00:00
|
|
|
-e PLUGIN_ROOMID=randomstring:matrix.org \
|
|
|
|
-e PLUGIN_USERNAME=octocat \
|
|
|
|
-e PLUGIN_PASSWORD=random-secret \
|
2023-08-15 22:15:24 +00:00
|
|
|
-v $(pwd):/build:z \
|
|
|
|
-w /build \
|
|
|
|
thegeeklab/wp-matrix
|
2021-09-13 21:00:00 +00:00
|
|
|
```
|