-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
32 lines (28 loc) · 1.08 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
image: 'vikadata/dind-aws-node'
variables:
AWS_DEFAULT_REGION: 'cn-northwest-1'
# 构建並部署 feature 客户端
build_feature_client:
stage: build
image: vikadata/dind-aws-node
only:
- feature-autoupdater
before_script:
- node -v
- yarn config set registry https://registry.npm.taobao.org
- echo export ELECTRON_MIRROR="http://npm.taobao.org/mirrors/electron/" >> ~/.bash_profile
- source ~/.bash_profile
- npm install
script:
- echo "开始构建Mac客户端安装包..."
- yarn dist:dev_mac
- echo "开始构建Window客户端安装包..."
- yarn dist:dev_win
- echo "Start Upload......"
- mkdir ~/.aws/ && touch ~/.aws/credentials
# $AWS_ACCESS_KEY_ID、$AWS_SECRET_ACCESS_KEY 分别在gitlab代码库的变量里
- printf "[default]\naws_access_key_id = %s\naws_secret_access_key = %s\n" "$AWS_ACCESS_KEY_ID" "$AWS_SECRET_ACCESS_KEY" >> ~/.aws/credentials
- aws s3 cp dist s3://vika-headquarters.vika.cn/integration --recursive --include "*"
- yarn update:vikalist
- rm -rf dist/*
- echo "完成部署!~"