forked from codefreshdemo/demochat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
32 lines (30 loc) · 810 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
pipeline:
build:
image: node:latest
environment:
- DEBUG=*
commands:
- npm install
- npm install -g mocha
- npm install -g istanbul
- npm install -g gulp
- npm install -g debug
publish:
image: plugins/docker
repo: ncodefresh/demochat
username: ${DOCKERHUB_USERNAME}
password: ${DOCKERHUB_PASSWORD}
tags: [ "latest", "1" ]
when:
branch: master
event: push
slack:
image: plugins/slack
webhook: https://hooks.slack.com/services/
channel: drone-migration
username: drone
template: >
*{{ build.status }}* <{{ build.link }}|{{ repo.owner }}/{{ repo.name }}#{{ build.commit }}> ({{ build.ref }}) by {{ build.author }}
when:
event: [ push, pull_request ]
status: [ success, failure ]