1. 更新gitlab-ci流水线配置
This commit is contained in:
parent
c9c24c5575
commit
58f91b8b35
|
@ -1,12 +1,13 @@
|
|||
stages :
|
||||
- compile
|
||||
- test
|
||||
- sonarqube-check
|
||||
- check
|
||||
- package
|
||||
- release
|
||||
|
||||
# 代码质量检查
|
||||
sonarqube-check :
|
||||
stage : sonarqube-check
|
||||
stage : check
|
||||
tags :
|
||||
- linux-maven
|
||||
image : maven:3-eclipse-temurin-17
|
||||
|
@ -25,7 +26,7 @@ sonarqube-check :
|
|||
- master
|
||||
- main
|
||||
- develop
|
||||
dependencies:
|
||||
dependencies :
|
||||
- integration-test
|
||||
|
||||
# 编译
|
||||
|
@ -72,4 +73,22 @@ package :
|
|||
- master
|
||||
script:
|
||||
- echo "=============== 开始打包任务 ==============="
|
||||
- mvn clean package
|
||||
- mvn clean package
|
||||
|
||||
release_job :
|
||||
stage : release
|
||||
image : registry.gitlab.com/gitlab-org/release-cli:latest
|
||||
rules :
|
||||
- exists:
|
||||
- ./CHANGELOG.md
|
||||
- changes:
|
||||
- ./CHANGELOG.md
|
||||
script :
|
||||
- echo "running release_job"
|
||||
release : # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
|
||||
tag_name : '$CI_COMMIT_SHA'
|
||||
name : 'Release $CI_COMMIT_SHA'
|
||||
description: './CHANGELOG.md'
|
||||
ref : '$CI_COMMIT_SHA'
|
||||
dependencies:
|
||||
- package
|
|
@ -0,0 +1,7 @@
|
|||
**2024/03/13**
|
||||
# v0.0.1-dev
|
||||
* 初始化项目
|
||||
* 支持多模块项目
|
||||
* 支持 SpringBoot Security
|
||||
* 支持集成测试
|
||||
* Gitlab CI/CD 自动化配置
|
Loading…
Reference in New Issue