From c9335aa9296d412bae2028b3d64a0c6df3896ce3 Mon Sep 17 00:00:00 2001 From: Phet Date: Sun, 16 Jul 2023 17:14:56 +0700 Subject: [PATCH] [chore] - test pipeline --- .drone.yml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 47cc05d..780c800 100644 --- a/.drone.yml +++ b/.drone.yml @@ -31,10 +31,21 @@ steps: from_secret: kube_token # commands: # - kubectl --insecure-skip-tls-verify --namespace=rmutr rollout restart deployment/rmutr-budget-api - notify: - webhook: - debug: true - method: POST - urls: - - https://utility.71dev.com/utility-api/giteawebhook - content_type: application/json + - name: discord notification + image: appleboy/drone-discord + settings: + webhook_id: 1130060377468715028 + webhook_token: vIGjdYXO7R_uyJWVrHvpZntcC_DFFELcTb0cRO5gX0iLGhlpwBWQ2FxiXedAUskYbXzU + message: > + 📝 {{repo.name}} / {{commit.branch}} - {{commit.message}} + {{#success build.status}} + ✅ succeeded for 👷‍♂️ build {{build.number}} + {{else}} + 🛑 failed for 👷‍♂️ build {{build.number}} + {{/success}} + when: + status: + - failure + - success + depends_on: + - deploy