Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mould-vuecli3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lhfe
mould-vuecli3
Commits
e1c36ba0
Commit
e1c36ba0
authored
Oct 10, 2020
by
lipengcheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: x
parent
f3cf9409
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
24 deletions
+31
-24
.gitlab-ci.yml
.gitlab-ci.yml
+31
-24
No files found.
.gitlab-ci.yml
View file @
e1c36ba0
stages
:
-
stage-a
-
stage-b
-
stage-c
-
install_deps
-
build_prod
-
deploy_prod
cache
:
# key: ${CI_BUILD_REF_NAME}
paths
:
-
node_modules/
-
dist
job-a1
:
stage
:
stage-a
# 安装构建依赖
install_deps_job
:
stage
:
install_deps
# only:
# - master
script
:
-
echo '安装构建依赖阶段===>1'
-
npm -v
-
yarn --version
tags
:
-
tag-project2
job-a2
:
stage
:
stage-a
script
:
-
echo '安装构建依赖阶段===>2'
tags
:
-
tag-project2
job-a3
:
stage
:
stage-a
script
:
-
echo '安装构建依赖阶段===>3'
-
echo '安装构建依赖阶段'
-
pwd
-
yarn
tags
:
-
tag-project2
job-b
:
stage
:
stage-b
# 打包文件
build_prod_job
:
stage
:
build_prod
# only:
# - master
script
:
-
echo '打包新文件阶段'
-
pwd
-
ls -a
-
rm -rf ./dist
-
yarn passports
-
ls -a
tags
:
-
tag-project2
job-c
:
stage
:
stage-c
# 登录项目部署服务器,移除旧版本项目文件,最后将打包好的文件拷贝过去
deploy_prod_job
:
stage
:
deploy_prod
only
:
-
master
script
:
-
echo '登录项目部署服务器,移除旧版本项目文件,最后将打包好的文件拷贝过去'
tags
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment