-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.drone.yml
More file actions
40 lines (35 loc) · 761 Bytes
/
.drone.yml
File metadata and controls
40 lines (35 loc) · 761 Bytes
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
pipeline:
restore-cache:
image: plugins/s3-cache:1
restore: true
when:
event: [ push, deployment ]
npm-auth:
image: robertstettner/drone-npm-auth
secrets: [ npm_token ]
when:
event: [ push, deployment ]
build:
image: node:8.10-alpine
commands: npm prune && npm install
when:
event: [ push, deployment ]
rebuild-cache:
image: plugins/s3-cache:1
rebuild: true
mount:
- node_modules
when:
event: push
# test-dev:
# image: node:8.10-alpine
# commands: npm test
# when:
# event: push
# branch: master
# deploy-dev:
# image: node:8.10-alpine
# commands: npm run deploy:dev
# when:
# event: deployment
# environment: dev