From c6c3db6bc193bed73a5ca7018b7da9d1998179cf Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 12 Jun 2021 17:52:54 +0200 Subject: [PATCH] ci: drone: add notification step on exec runner --- .drone.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.drone.yml b/.drone.yml index 68f3919..310fc1c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,4 +14,24 @@ steps: - name: test commands: - nix run 'nixpkgs#hello' +- name: notify + comands: + - nix run 'github:ambroisie/matrix-notifier' + environment: + ADDRESS: + from_secret: matrix_homeserver + ROOM: + from_secret: matrix_roomid + USER: + from_secret: matrix_username + PASS: + from_secret: matrix_password + MESSAGE: + # FIXME: need to find a way to link + "Build ${DRONE_BUILD_STATUS} [${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}](${DRONE_SYSTEM_PROTO}://${DRONE_SYSTEM_HOST}/${DRONE_REPO}/${DRONE_BUILD_NUMBER}) (${DRONE_BRANCH}) by ${DRONE_COMMIT_AUTHOR}" + settings: + trigger: + status: + - failure + - success ...