From 04453b84e6d016e6ff4983c5bb40f33850e99ecf Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Fri, 19 May 2023 12:08:06 -0700 Subject: [PATCH] Add curls for builds --- .drone.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.drone.yml b/.drone.yml index 1bca407e..5f4610b8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,6 +3,14 @@ type: docker name: default 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 image: python:3.10-slim commands: @@ -45,3 +53,11 @@ steps: - master event: - 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 \ No newline at end of file