From 2912600aa43cf002ff4af374c85e5c9490a706c5 Mon Sep 17 00:00:00 2001 From: Christopher Arndt Date: Sat, 22 Jul 2023 20:54:02 +0200 Subject: [PATCH] feat: send CI notifications to sonoj.org matrix server (#254) Use [custom drone.io plugin](https://github.com/SpotlightKid/drone-matrixchat-notify) to send CI notifications to sonoj.org matrix server. --- .drone.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/.drone.yml b/.drone.yml index 296f8cb7..4c00df42 100644 --- a/.drone.yml +++ b/.drone.yml @@ -441,3 +441,45 @@ when: status: - success - failure + +--- +kind: pipeline +name: Send notification + +steps: +- name: Notify Matrix chat + image: spotlightkid/drone-matrixchat-notify + settings: + homeserver: 'https://sonoj.org' + roomid: '!AkWpRHuPJQwVbEpayh:sonoj.org' + userid: '@bot-archlinux-proaudio:sonoj.org' + accesstoken: + from_secret: matrix-bot-token + deviceid: 'HOFQKIPDQE' + template: | + CI pipeline `${DRONE_REPO}` build #${DRONE_BUILD_NUMBER} status: **${DRONE_BUILD_STATUS}** + + Build logs: [#${DRONE_BUILD_NUMBER}](${DRONE_BUILD_LINK}) + + PR: [#${DRONE_PULL_REQUEST} ${DRONE_PULL_REQUEST_TITLE}](${DRONE_COMMIT_LINK}) by *${DRONE_COMMIT_AUTHOR}* + + ``` + ${DRONE_COMMIT_MESSAGE} + ``` + markdown: 'yes' + +depends_on: + - Build and check + - Build arm64 + - Website + +trigger: + ref: + include: + - refs/heads/master + - refs/pull/** + +when: + status: + - success + - failure