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 38364c6961
commit 505fd58f5a
2 changed files with 19 additions and 2 deletions

View File

@ -3,6 +3,22 @@ type: docker
name: Build and Push docker image name: Build and Push docker image
steps: 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 - name: lint-python
image: python:3.10-slim image: python:3.10-slim
commands: commands:
@ -47,9 +63,10 @@ steps:
event: event:
- push - push
- name: discord notification - name: Post pipeline starting to discord
image: appleboy/drone-discord image: appleboy/drone-discord
settings: settings:
username: Drone CI Bot
webhook_id: webhook_id:
from_secret: discord_webhook_id from_secret: discord_webhook_id
webhook_token: webhook_token:

View File

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