Commit e1c36ba0 authored by lipengcheng 's avatar lipengcheng

ci: x

parent f3cf9409
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:
......
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