I think I now get the pipeline concept
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
71
.drone.yml
71
.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:
|
||||
|
||||
Reference in New Issue
Block a user