-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.gitlab-ci.yml
56 lines (52 loc) · 1.05 KB
/
.gitlab-ci.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
image: node:10-stretch
stages:
- test
- deploy_dev
- release
test:
stage: test
except:
- triggers
tags:
- docker
image: docker-registry.linagora.com:5000/public-releases/openpaas-esn-test-helper:1.1.0
script:
- npm i
- npm update
- bower i --allow-root
- grunt --chunk=1
services:
- mongo:3.4
- elasticsearch:2.4
- redis:3
- rabbitmq:3.6
deploy_dev:
stage: deploy_dev
except:
- triggers
tags:
- dev.open-paas.org
- deployment
environment:
name: dev
url: https://dev.open-paas.org
only:
- master@linagora/lgs/openpaas/linagora.esn.chat
script:
- cd /srv/${CI_PROJECT_NAME}
- git fetch --all
- git checkout ${CI_COMMIT_SHA}
- npm install --ignore-scripts --production
- npm update --production
- npm prune
- bower install --production
- bower prune
- git checkout -- .
- sudo /etc/init.d/rse.dev restart
release:
stage: release
only:
- triggers
script:
- if [ -z "${VERSION}" ]; then exit 0; fi
- grunt release:${VERSION}