-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
47 lines (44 loc) · 833 Bytes
/
.gitlab-ci.yml
File metadata and controls
47 lines (44 loc) · 833 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
38
39
40
41
42
43
44
45
46
47
variables:
SERVICE_BASE_DIR: "/opt/gitlab-ci"
stages:
- build
build-test-env:
variables:
SERVICE_NAME: rock-admin-frontend
SERVICE_DIR: $SERVICE_BASE_DIR/$SERVICE_NAME
stage: build
script:
- npm i
- npm run build:test
- mkdir -p $SERVICE_DIR
- rsync -azruvh --delete dist/ $SERVICE_DIR/
- cd $SERVICE_DIR
- pwd
- ls
only:
- develop
tags:
- php-test
cache:
paths:
- node_modules/
build-dev-env:
variables:
SERVICE_NAME: rock-admin-frontend
SERVICE_DIR: $SERVICE_BASE_DIR/$SERVICE_NAME
stage: build
script:
- npm i
- npm run build:dev
- mkdir -p $SERVICE_DIR
- rsync -azruvh --delete dist/ $SERVICE_DIR/
- cd $SERVICE_DIR
- pwd
- ls
only:
- develop2
tags:
- php-dev
cache:
paths:
- node_modules/