forked from ston1th/dainit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
43 lines (39 loc) · 780 Bytes
/
.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
workspace:
base: /srv/app
path: src/dev.sigpipe.me/dashie/lutrainit
clone:
git:
image: plugins/git:1
depth: 50
tags: true
pipeline:
test:
image: webhippie/golang:edge
pull: true
environment:
GOPATH: /srv/app
commands:
- make test
when:
event: [ push, tag, pull_request ]
build:
image: webhippie/golang:edge
pull: true
environment:
GOPATH: /srv/app
commands:
- make clean
- make vet
- make lint
- make misspell-check
- make build
when:
event: [ push, tag, pull_request ]
notify:
image: plugins/slack
channel: gitea
secrets:
- SLACK_WEBHOOK
when:
event: [ push, tag, pull_request ]
status: [ changed, failure, success ]