From 3f0d4768852c074092b6e80941cc2a438b54b450 Mon Sep 17 00:00:00 2001 From: mifi Date: Tue, 2 May 2023 19:22:01 -0400 Subject: [PATCH] Oh yeah... --- .drone.yml | 58 ++++++++++++++++++++++++++---------------------------- 1 file changed, 28 insertions(+), 30 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4122269..b9c1bee 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,21 +5,6 @@ name: Test Pipeline workspace: path: /drone/grow -pipeline: - notify: - image: plugins/webhook - settings: - urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r - content_type: application/json - template: | - { - "icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png", - "text": "[{{ repo.name }}] Code Quality Checks {{ build.status }} :tada:", - "username":"DroneBot" - } - trigger: - event: [ success, failure ] - steps: - name: yarn install image: node:latest @@ -41,6 +26,20 @@ steps: commands: - yarn test +- name: Send Status Notification + image: plugins/webhook + settings: + urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r + content_type: application/json + template: | + { + "icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png", + "text": "[{{ repo.name }} - Build # {{ build.number }}] Code Quality Checks {{ build.status }} :tada:", + "username":"DroneBot" + } + when: + event: [ success, failure ] + trigger: event: - push @@ -53,27 +52,26 @@ name: Build Pipeline workspace: path: /drone/grow -pipeline: - notify: - image: plugins/webhook - settings: - urls: https://lab.mifi.dev/hooks/ccw34hdf7tgbjmzp96nptn938r - content_type: application/json - template: | - { - "icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png", - "text": "[{{ repo.name }}] Build {{ build.status }} :tada:", - "username":"DroneBot" - } - trigger: - event: [ success, failure ] - steps: - name: Build image: node:latest commands: - yarn build +- name: Send Status Notifications + image: plugins/webhook + settings: + urls: https://lab.mifi.dev/hooks/ccw34hdf7tgbjmzp96nptn938r + content_type: application/json + template: | + { + "icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png", + "text": "[{{ repo.name }} - Build # {{ build.number }}] Build package {{ build.status }} :tada:", + "username":"DroneBot" + } + when: + event: [ success, failure ] + depends_on: - Test Pipeline