-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
47 lines (44 loc) · 974 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
44
45
46
47
image: node:12-alpine
stages:
- deploy
deploy_qa:
stage: deploy
before_script:
- npm config set prefix /usr/local
- npm install -g serverless
- npm update -g serverless
tags:
- meedan
- meedan-labs
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
GITHUB_TOKEN: $GITHUB_TOKEN
API_KEY: $API_KEY_QA
DEPLOY_ENV: qa
CONFIG_JS: $QA_CONFIG_JS
only:
- develop
script:
- apk add --no-cache git
- npm run deploy
deploy_live:
stage: deploy
before_script:
- npm config set prefix /usr/local
- npm install -g serverless
tags:
- meedan
- meedan-labs
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
GITHUB_TOKEN: $GITHUB_TOKEN
API_KEY: $API_KEY_LIVE
DEPLOY_ENV: live
CONFIG_JS: $LIVE_CONFIG_JS
only:
- master
script:
- apk add --no-cache git
- npm run deploy