From b703c8bba4e6cd6227061a039ba6fa50c2d64cb7 Mon Sep 17 00:00:00 2001 From: wowario Date: Sun, 26 Jul 2020 00:42:11 +0300 Subject: [PATCH] add build notifications --- .drone.yml | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 97b2cc3eb..372a3a4ac 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,10 +1,34 @@ --- kind: pipeline type: docker -name: default +name: linux-build steps: -- name: wow-ci +- name: linux-build image: wow-dependencies:v1.0 commands: - make -j2 release-static-linux-x86_64 + +- name: discord linux notification + image: appleboy/drone-discord + settings: + webhook_id: + from_secret: discord_webhook_id + webhook_token: + from_secret: discord_webhook_token + message: Linux build {{build.number}} complete. {{build.link}} + depends_on: + - linux-build + +- name: matrix linux notification + image: plugins/matrix + settings: + homeserver: https://matrix.org + roomid: tfuEmpojJyhMTMjNeN:matrix.org + username: + from_secret: matrix_username + password: + from_secret: matrix_password + template: Linux build {{build.number}} complete. {{build.link}} + depends_on: + - linux-build \ No newline at end of file