From d3fce6d922296353e582c6b1abd34c8cf8309d1e Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 6 Aug 2023 11:14:12 +0200 Subject: [PATCH] Added notify-build-status step to Drone pipeline. --- .drone.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.drone.yml b/.drone.yml index 52236d028f..f84a3109b5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -207,3 +207,26 @@ steps: curl --silent -XPOST \ -H "X-Token: $WORKER_RPC_SECRET" \ "https://worker.ci-cd.platypush.tech/hook/notify-platypush-release?version=$(python setup.py --version)" + +- name: notify-build-status + image: alpine + environment: + WORKER_RPC_SECRET: + from_secret: worker_rpc_secret + + when: + branch: + - master + event: + - push + + depends_on: + - tests + - update-arch-packages + + commands: + - apk add --update --no-cache curl + - | + curl --silent -XPOST \ + -H "X-Token: $WORKER_RPC_SECRET" \ + "https://worker.ci-cd.platypush.tech/hook/notify-platypush-build?status=$DRONE_BUILD_STATUS"