Commit 78ef4f86 authored by 吴军's avatar 吴军

Add new file

parent 8bf5849e
# 开发环境部署脚本
# 环境变量说明:
# 变量的使用:在项目.gitlab-ci.yml编排文件中声明
# NginxAliasDirectory 变量为静态资源的对象存储路径,需要和console.zmcms.cn的Nginx站点配置中心的alias目录保持一致,实例如:
# variables:
# NginxAliasDirectory: bakingCenter
stages:
- cicd
#部署
cicd:
stage: cicd
only:
- dev
tags:
- runner-vue
script:
- echo -e "NginxAliasDirectory:${NginxAliasDirectory}"
# 部署OSS
- 'ossutil64 cp -rf ./ oss://zmcms-cn-vue/${NginxAliasDirectory} --exclude "*.html" --exclude ".htaccess" --exclude ".gitlab-ci.yml" --exclude "README.md" && echo "推送对象存储成功!"'
- '[[ $? != 0 ]] && echo "部署出错!" && exit 1'
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