forked from platypush/platypush
Added notify-build-status step to Drone pipeline.
This commit is contained in:
parent
ed192faab2
commit
d3fce6d922
1 changed files with 23 additions and 0 deletions
23
.drone.yml
23
.drone.yml
|
@ -207,3 +207,26 @@ steps:
|
||||||
curl --silent -XPOST \
|
curl --silent -XPOST \
|
||||||
-H "X-Token: $WORKER_RPC_SECRET" \
|
-H "X-Token: $WORKER_RPC_SECRET" \
|
||||||
"https://worker.ci-cd.platypush.tech/hook/notify-platypush-release?version=$(python setup.py --version)"
|
"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"
|
||||||
|
|
Loading…
Reference in a new issue