Add curls for builds
This commit is contained in:
parent
08188003b4
commit
04453b84e6
16
.drone.yml
16
.drone.yml
@ -3,6 +3,14 @@ type: docker
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Notify discord pipeline has started
|
||||||
|
image: curltools/curl
|
||||||
|
commands:
|
||||||
|
- curl --json '{"username": "Drone CI", "avatar_url": "https://miro.medium.com/v2/resize:fit:1358/0*AqO_2lNemh_Fl9Gm.png","content": "Build ${DRONE_BUILD_NUMBER} has started🏁\nhttp://192.168.2.6/ldooks/dragon-bot/${DRONE_BUILD_NUMBER}"}' https://discord.com/api/webhooks/1109178686734868490/DPBYWK5bFrt5ebq433xk9ZWkAxTLkD01WY2K66l2IleQQCG_bUnCzYpjZeTV2-R7oM4j
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
- name: lint-python
|
- name: lint-python
|
||||||
image: python:3.10-slim
|
image: python:3.10-slim
|
||||||
commands:
|
commands:
|
||||||
@ -45,3 +53,11 @@ steps:
|
|||||||
- master
|
- master
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
|
- name: Notify discord pipeline has started
|
||||||
|
image: curltools/curl
|
||||||
|
commands:
|
||||||
|
- curl --json '{"username": "Drone CI", "avatar_url": "https://miro.medium.com/v2/resize:fit:1358/0*AqO_2lNemh_Fl9Gm.png","content": "Build ${DRONE_BUILD_NUMBER} has finished\nhttp://192.168.2.6/ldooks/dragon-bot/${DRONE_BUILD_NUMBER}"}' https://discord.com/api/webhooks/1109178686734868490/DPBYWK5bFrt5ebq433xk9ZWkAxTLkD01WY2K66l2IleQQCG_bUnCzYpjZeTV2-R7oM4j
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
Loading…
x
Reference in New Issue
Block a user