add drone configuration
This commit is contained in:
parent
6ea554dd4f
commit
03e16059e4
1 changed files with 8 additions and 7 deletions
15
.drone.yml
15
.drone.yml
|
@ -1,21 +1,22 @@
|
|||
pipeline:
|
||||
backend:
|
||||
run_golang:
|
||||
group: build
|
||||
image: golang
|
||||
commands:
|
||||
- go build
|
||||
- go test
|
||||
frontend:
|
||||
|
||||
run_bash:
|
||||
group: build
|
||||
image: node
|
||||
image: alpine
|
||||
commands:
|
||||
- npm install
|
||||
- npm run test
|
||||
- npm run build
|
||||
- myhostname=$(hostname)
|
||||
- echo my hostname is ${myhostname}
|
||||
|
||||
slack:
|
||||
image: plugins/slack
|
||||
channel: system_events
|
||||
webhook:
|
||||
from_secret: slack_webhook
|
||||
from_secret: slack_webhook
|
||||
when:
|
||||
status: [ success, failure ]
|
||||
|
|
Loading…
Reference in a new issue