Updating drone ci file to post to dsicord with build info

This commit is contained in:
Luke Robles 2023-05-22 09:50:54 -07:00
parent d2c966b8c5
commit 5bfa99cc5e
2 changed files with 19 additions and 2 deletions

View File

@ -3,6 +3,22 @@ type: docker
name: Build and Push docker image
steps:
- name: Post pipeline status to discord
image: appleboy/drone-discord
settings:
username: Drone CI Bot
webhook_id:
from_secret: discord_webhook_id
webhook_token:
from_secret: discord_webhook_token
avatar_url: https://miro.medium.com/v2/resize:fit:1358/0*AqO_2lNemh_Fl9Gm.png
message: "Drone build [[#{{build.number}}]({{build.link}})] has started"
trigger:
branch:
- master
event:
- push
- name: lint-python
image: python:3.10-slim
commands:
@ -47,9 +63,10 @@ steps:
event:
- push
- name: discord notification
- name: Post pipeline starting to discord
image: appleboy/drone-discord
settings:
username: Drone CI Bot
webhook_id:
from_secret: discord_webhook_id
webhook_token:

View File

@ -6,7 +6,7 @@ metadata:
spec:
project: default
source:
repoURL: http://192.168.2.5/ldooks/dragon-bot.git
repoURL: git@git.luker.fr:ldooks/dragon-bot.git
targetRevision: HEAD
path: helm
destination: