-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
43 lines (40 loc) · 946 Bytes
/
.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
stages:
- test
- build
- deploy
unit test:
image: node:8
stage: test
before_script:
- npm install
script:
- node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha -- ./test/* --recursive --timeout 30000
only:
- /master/
environment: test
build alert:
image: docker:latest
stage: build
services:
- docker:dind
before_script:
- docker login -u ${DOCKER_USER} -p ${DOCKER_PASS}
- docker build -t guila/lino-alerta .
script:
- docker push guila/lino-alerta
only:
- /master/
- /ContinuousDeploy/
deploy lino-alerta:
image: cdrx/rancher-gitlab-deploy
stage: deploy
script:
- "upgrade
--service alerta-gmail
--environment $RANCHER_ENVIRONMENT
--stack $RANCHER_STACK
--rancher-key $RANCHER_ACCESS_KEY
--rancher-secret $RANCHER_SECRET_KEY
--rancher-url $RANCHER_URL"
only:
- /master/