-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
executable file
·59 lines (52 loc) · 1.12 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
kind: pipeline
type: docker
name: default
trigger:
event:
- push
workspace:
path: /drone/src
volumes:
- name: cache
temp: { }
- name: dist
temp: { }
environment:
NPM_CONFIG_CACHE: /cache/npm/cache
steps:
- name: deps
image: node:16.15.0
volumes:
- name: cache
path: /cache
commands:
- yarn install
- name: test
image: node:16.15.0
volumes:
- name: cache
path: /cache
- name: dist
path: /drone/src/dist
commands:
- yarn test
depends_on:
- deps
- name: slack
image: plugins/slack
settings:
webhook:
from_secret: SLACK_WEBHOOK
channel: cicd
link_names: true
template: >
{{#success build.status}}
The {{ repo.owner }}/{{ repo.name }} build <{{ build.link }}| {{build.number}} ↗> is succeeded! Thanks <@{{build.author}}>
{{else}}
The {{ repo.owner }}/{{ repo.name }} build <{{ build.link }}| {{build.number}} ↗> is broken! Blame <@{{build.author}}>
{{/success}}
depends_on:
- test
when:
status: [ success, failure ]