-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
62 lines (53 loc) · 831 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
image: pety7439/uid-container
variables:
LOCAL_PATH: ./ci
LOCAL_PATH_DEV: ./dist
before_script:
- cd uid-skeleton
cache:
key: "$CI_PROJECT_ID"
untracked: true
stages:
- init
- lint
- build
- deploy
uid:init:
stage: init
tags:
- uid-container
script:
- yarn
uid:lint:
stage: lint
tags:
- uid-container
script:
- yarn lint
uid:build-css:
stage: build
only:
- master
tags:
- uid-container
script:
- yarn run build-css-release
uid:build-js:
stage: build
only:
- master
tags:
- uid-container
script:
- yarn run build-js-release
uid:deploy:
stage: deploy
when: manual
environment:
name: QA
only:
- master
script:
- yarn run ci-deploy
- sh ./deploy.sh $PROD_URL $LOCAL_PATH $PROD_PATH
- sh ./deploy.sh $PROD_URL $LOCAL_PATH_DEV $PROD_PATH_DEV