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
8fd010ae
Commit
8fd010ae
authored
Oct 10, 2020
by
lipengcheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: xxx
parent
e1c36ba0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
+17
-11
.gitlab-ci.yml
.gitlab-ci.yml
+17
-11
No files found.
.gitlab-ci.yml
View file @
8fd010ae
stages
:
-
install_deps
-
build_pro
d
-
deploy_prod
-
stage-install
-
stage-buil
d
-
stage-deploy
cache
:
# key: ${CI_BUILD_REF_NAME}
...
...
@@ -10,8 +10,8 @@ cache:
-
dist
# 安装构建依赖
install_deps_job
:
stage
:
install_deps
job-install
:
stage
:
stage-install
# only:
# - master
script
:
...
...
@@ -22,8 +22,8 @@ install_deps_job:
-
tag-project2
# 打包文件
build_prod_job
:
stage
:
build_pro
d
job-build
:
stage
:
stage-buil
d
# only:
# - master
script
:
...
...
@@ -37,11 +37,17 @@ build_prod_job:
-
tag-project2
# 登录项目部署服务器,移除旧版本项目文件,最后将打包好的文件拷贝过去
deploy_prod_job
:
stage
:
deploy_prod
only
:
-
master
job-deploy
:
stage
:
stage-deploy
#
only:
#
- master
script
:
-
echo '登录项目部署服务器,移除旧版本项目文件,最后将打包好的文件拷贝过去'
-
cd ./dist
-
pwd
-
whoami
-
ssh root@119.45.165.197 "pwd"
-
ssh root@119.45.165.197 "rm -rf /www/mould-vuecli3/dist"
-
scp -r ./dist root@119.45.165.197:/www/mould-vuecli3/
tags
:
-
tag-project2
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