forked from normanjoyner/containership
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
38 lines (36 loc) · 807 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
build:
image: library/node:6.9.1
commands:
- npm install yarn -g
- yarn install --pure-lockfile --ignore-engines
- yarn run lint
- yarn test
notify:
slack:
webhook_url: $$SLACK_RELEASES_WEBHOOK
channel: releases
username: drone
publish:
npm:
username: "$$NPM_USERNAME"
password: "$$NPM_PASSWORD"
email: "$$NPM_EMAIL"
when:
event: tag
docker:
username: "$$DOCKERHUB_USERNAME"
password: "$$DOCKERHUB_PASSWORD"
email: "$$DOCKERHUB_EMAIL"
repo: containership/containership
tag: $$TAG
when:
event: tag
docker:
username: "$$DOCKERHUB_USERNAME"
password: "$$DOCKERHUB_PASSWORD"
email: "$$DOCKERHUB_EMAIL"
repo: containership/containership
tag: latest
when:
branch: master
event: push