Updating drone ci file to post to dsicord with build info
This commit is contained in:
parent
d2c966b8c5
commit
5bfa99cc5e
19
.drone.yml
19
.drone.yml
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user