-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
57 lines (50 loc) · 1.84 KB
/
.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
include:
- project: 'product/atmosphere-products/agms/ci-templates'
file: '/Devops.gitlab-ci.yml'
- project: 'product/atmosphere-products/agms/ci-templates'
file: '/Sonar-Check-JS.gitlab-ci.yml'
- project: 'product/atmosphere-products/agms/ci-templates'
file: 'Build-Nodejs-Node8-Multi.gitlab-ci.yml'
- project: 'product/atmosphere-products/agms/ci-templates'
file: '/Deploy-Development-Env.gitlab-ci.yml'
- project: 'product/atmosphere-products/agms/ci-templates'
file: '/Deploy-Testing-Env.gitlab-ci.yml'
- project: 'product/atmosphere-products/agms/ci-templates'
file: '/Tag.gitlab-ci.yml'
#build_x86_docker_images:
# stage: build
# image: registry.fpi-inc.site/library/node-dind:12-alpine
# script:
# - yarn config set registry https://registry.npm.taobao.org
# - yarn install
# - yarn build
# - build ./dist
# cache:
# paths:
# - ./node_modules
# - ./yarn.lock
# only:
# - branches #所有分支触发push时都需要构建
# except:
# - tags #通常是对已经测试通过的镜像打tag,所以不需要再次编译镜像
build_x86_docker_images:
stage: build
image: registry.fpi-inc.site/library/node-dind:16.14.0-alpine
script:
- yarn config set registry https://registry.npm.taobao.org
- yarn config set ignore-engines true
#- yarn config set registry http://nexus.fpi-inc.site/repository/npm-group/
- npm install
- if ! yarn theme:generateNoWatch; then echo "Command \"theme:generateNoWatch\" not found, skip..."; fi #某些项目不能执行yarn theme:generateNoWatch命令,因此做了兼容
- yarn run build
- build_node_x86 ./dist
cache:
paths:
- ./node_modules
- ./yarn.lock
only:
- master #只有并入master才打包;减少重复打包
except:
- tags #通常是对已经测试通过的镜像打tag,所以不需要再次编译镜像
tags:
- x86