-
Notifications
You must be signed in to change notification settings - Fork 2
/
.drone.yml
66 lines (60 loc) · 1.42 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
workspace:
base: /drone
path: src/${DRONE_REPO_NAME}
clone:
default:
image: plugins/git
recursive: true
group: clone
pipeline:
restore-cache:
image: drillster/drone-volume-cache
restore: true
mount:
- ./node_modules
- ./.yarn-cache
volumes:
- /tmp/cache:/cache
build:
image: presslabs/particles-build
pull: true
commands:
- Xvfb :1 -screen 0 800x600x16 &
- make build
# copy-demo:
# image: alpine:3.7
# commands:
# - mkdir -p /drone/src/presslabs-org/wp-content/root/particles/
# - rm -rf /drone/src/presslabs-org/wp-content/root/particles/*
# - mv demo/* /drone/src/presslabs-org/wp-content/root/particles
# when:
# branch: master
# event: push
#
# update-presslabs-org:
# image: appleboy/drone-git-push
# branch: prod
# commit: true
# path: /drone/src/presslabs-org
# commit_message: "[particles] Update particles demo"
# remote: [email protected]:/Presslabs/presslabs-org.git
# secrets:
# - GIT_PUSH_SSH_KEY
# when:
# branch: master
# event: push
rebuild-cache:
image: drillster/drone-volume-cache
rebuild: true
mount:
- ./node_modules
- ./.yarn-cache
volumes:
- /tmp/cache:/cache
npm:
image: plugins/npm
email: [email protected]
secrets: [ npm_username, npm_password ]
when:
branch: master
event: push