From 5bfa99cc5ee9b6dc40e633eb2d5da2287f7d4374 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Mon, 22 May 2023 09:50:54 -0700 Subject: [PATCH] Updating drone ci file to post to dsicord with build info --- .drone.yml | 19 ++++++++++++++++++- argocd-application.yaml | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 06ea9bfd..2407d326 100644 --- a/.drone.yml +++ b/.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: diff --git a/argocd-application.yaml b/argocd-application.yaml index e1d38f85..8ded4c54 100755 --- a/argocd-application.yaml +++ b/argocd-application.yaml @@ -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: