Commit 8fd010ae authored by lipengcheng 's avatar lipengcheng

ci: xxx

parent e1c36ba0
stages:
- install_deps
- build_prod
- deploy_prod
- stage-install
- stage-build
- 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_prod
job-build:
stage: stage-build
# 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment