8 Star 0 Fork 0

李家辉/shenling-admin-template-1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.gitlab-ci.yml 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
李家辉 提交于 2023-11-07 16:00 . 项目初始化
stages:
- build
# sonar_preview:
# stage: sonar
# script:
# - ci/sonar_preview.sh
# tags:
# - centos-aliyun-158
# only:
# - master
sonar_analyze:
stage: sonar
script:
- |
sonar-scanner -X \
-Dsonar.projectKey=gitlab:$CI_COMMIT_REF_NAME:$CI_PROJECT_NAME \
-Dsonar.projectName=gitlab:$CI_COMMIT_REF_NAME:$CI_PROJECT_NAME \
-Dsonar.projectVersion=1.0.$CI_PIPELINE_ID \
-Dsonar.sources=src \
-Dsonar.sourceEncoding=UTF-8 \
-Dsonar.issuesReport.html.enable=true \
-Dsonar.gitlab.project_id=$CI_PROJECT_ID \
-Dsonar.gitlab.commit_sha=$CI_COMMIT_SHA \
-Dsonar.gitlab.ref_name=$CI_COMMIT_REF_NAME
tags:
- sonar
only:
- huangxu-0817
build:
stage: build
script:
- yarn --registry https://registry.npm.taobao.org
- yarn build:prod
- sudo rm -rf /data/nginx/html/${CI_PROJECT_NAME}/*
- sudo cp -rf ./dist/* /data/nginx/html/${CI_PROJECT_NAME}/
- sudo chown nginx.nginx -R /data/nginx/html/${CI_PROJECT_NAME}
tags:
- aliyun-kubernetes
only:
- master
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/li-jiahui010/shenling-admin-template-1.git
git@gitee.com:li-jiahui010/shenling-admin-template-1.git
li-jiahui010
shenling-admin-template-1
shenling-admin-template-1
master

搜索帮助