From 812d39272014b89db4a5bf96545bd8e4af61f068 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Sat, 8 Jul 2023 09:06:25 +0200 Subject: [PATCH] feat: publish to matrix --- .drone.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.drone.yml b/.drone.yml index c0d9675..73c6ea6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,6 +22,15 @@ steps: PYPI_TOKEN: from_secret: pypi_token + - name: Notify on matrix + image: plugins/matrix + settings: + homeserver: https://matrix.poneyworld.net + roomid: SUvowRWvgvpcxdkZo:matrix.poneyworld.net + username: $MATRIX_USER + password: $MATRIX_PASS + template: "Une nouvelle version (${DRONE_TAG}) de pdf-oralia est publiée!" + when: event: include: @@ -32,3 +41,26 @@ trigger: event: include: - tag + +--- +kind: pipeline +name: push-test +type: docker + +# Étapes de la pipeline +steps: + - name: Notify on matrix + image: plugins/matrix + environment: + MATRIX_ROOMID: + from_secret: MATRIX_ROOMID + MATRIX_ACCESSTOKEN: + from_secret: MATRIX_ACCESSTOKEN + MATRIX_USERID: + from_secret: MATRIX_USERID + settings: + homeserver: https://matrix.poneyworld.net + +trigger: + event: + - push