-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
37 lines (34 loc) · 799 Bytes
/
.gitlab-ci.yml
File metadata and controls
37 lines (34 loc) · 799 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
stages:
- announce
- test
- deploy
test:
image: node:12.13
stage: test
variables:
DB_CONNECTION_TEST: $DB_CONNECTION_TEST
services:
- mongo:latest
script:
- echo $DB_CONNECTION_TEST
- npm install
- npm test
only:
- develop
deploy:
image: ruby:2.5.6
stage: deploy
script:
- apt-get update -qy
- apt-get install -y ruby-dev
- gem install dpl
- dpl --provider=heroku --app=$HEROKU_APPNAME --api-key=$HEROKU_APIKEY
only:
- develop
announce:
stage: announce
script:
- curl --data chat_id=$TELEGRAM_CHAT_ID --data-urlencode text="[$CI_COMMIT_REF_NAME] $CI_COMMIT_TITLE" $TELEGRAM_BOT_URL/sendMessage
only:
- master
- develop