-
Notifications
You must be signed in to change notification settings - Fork 4
/
.drone.yml
48 lines (43 loc) · 1 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
pipeline:
run-server-tests:
image: node:8.9
detach: true
commands:
- cd ./server
- sh ./bin/run.sh
when:
status: [ failure, success ]
event: [ pull_request ]
run-client-tests:
image: node:8.9
commands:
- cd ./client
- sh ./bin/run.sh
when:
status: [ failure, success ]
event: [ pull_request ]
npm-release-new-version:
image: plugins/npm
secrets: [ npm_username, npm_email, npm_password ]
folder: ./client/
when:
event: [ tag ]
branches: [ master ]
docker-release-new-version:
image: plugins/docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock
tags:
- $DRONE_TAG
- latest
repo: paralect/pdf-service
dockerfile: ./server/Dockerfile
context: ./server
secrets: [ docker_password, docker_email, docker_username ]
when:
event: [ tag ]
branches: [ master ]
services:
pdf-service:
image: paralect/pdf-service
branches: [ master, "*:master" ]