Added notify-build-status step to Drone pipeline.

This commit is contained in:
Fabio Manganiello 2023-08-06 11:14:12 +02:00
parent ed192faab2
commit d3fce6d922
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -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"