Compare commits

...

2 Commits

Author SHA1 Message Date
黄昕 877dd59cb0 1. 更新gitlab-ci流水线配置 2024-03-13 17:48:10 +08:00
黄昕 58f91b8b35 1. 更新gitlab-ci流水线配置 2024-03-13 17:46:05 +08:00
2 changed files with 30 additions and 4 deletions

View File

@ -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
tags:
- linux-maven
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'

7
CHANGELOG.md Normal file
View File

@ -0,0 +1,7 @@
**2024/03/13**
# v0.0.1-dev
* 初始化项目
* 支持多模块项目
* 支持 SpringBoot Security
* 支持集成测试
* Gitlab CI/CD 自动化配置