forked from RocketChat/Rocket.Chat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
44 lines (44 loc) · 1.3 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
pipeline:
restore-cache:
image: drillster/drone-volume-cache
restore: true
mount:
- /drone/.meteor/
- ./node_modules
- ./.meteor/local
volumes:
- /tmp/cache/Rocket.Chat:/cache
build:
image: ubuntu:16.04
environment:
- METEOR_ALLOW_SUPERUSER=true
commands:
- apt update && apt install curl git python g++ build-essential bzip2 -y
- export HOME=/drone
- export PATH="/drone/.meteor:$PATH"
- if [ ! -e "/drone/.meteor/meteor" ]; then export HOME=/drone; curl https://install.meteor.com | sed s/--progress-bar/-sL/g | /bin/sh; fi
- which meteor
- meteor npm install
- set +e
- meteor add rocketchat:lib
- set -e
- mkdir /drone/build
- meteor build --allow-superuser --server-only --directory /drone/build
- cp .docker/Dockerfile.local /drone/build/Dockerfile
rebuild-cache:
image: drillster/drone-volume-cache
rebuild: true
mount:
- /drone/.meteor/
- ./node_modules
- ./.meteor/local
volumes:
- /tmp/cache/Rocket.Chat:/cache
docker:
image: plugins/docker
repo: rocketchat/rocket.chat
dockerfile: /drone/build/Dockerfile
storage_driver: overlay
context: /drone/build
secrets: [ docker_username, docker_password ]
tag: designpreview