7 Star 0 Fork 0

wangwangwang200007220155 / shenling-logistics-157-01

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.gitlab-ci.yml 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
wangwangwang200007220155 提交于 2023-09-02 13:33 . 初始化仓库
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
1
https://gitee.com/wangwangwang200007220155/shenling-logistics-157-01.git
git@gitee.com:wangwangwang200007220155/shenling-logistics-157-01.git
wangwangwang200007220155
shenling-logistics-157-01
shenling-logistics-157-01
master

搜索帮助