From 9c06dbed5bda9f27eed727a3361a09272f95ba5f Mon Sep 17 00:00:00 2001 From: mifi Date: Tue, 2 May 2023 19:16:42 -0400 Subject: [PATCH] I think I now get the pipeline concept --- .drone.yml | 71 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 37 insertions(+), 34 deletions(-) diff --git a/.drone.yml b/.drone.yml index 005d35f..4122269 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,44 +1,46 @@ kind: pipeline type: docker -name: test +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 commands: - yarn install -- name: prettier +- name: Code Style Checks image: node:latest commands: - yarn prettier -- name: eslint +- name: Lint image: node:latest commands: - yarn lint -- name: test +- name: Unit Tests image: node:latest commands: - yarn test -- name: send-test-results - 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] trigger: event: - push @@ -46,33 +48,34 @@ trigger: --- kind: pipeline type: docker -name: build +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 +- name: Build image: node:latest commands: - yarn build -- name: send-build-results - 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] - depends_on: - - test + - Test Pipeline trigger: branch: