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
|
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:
|
||||||
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user