forgeboot/.gitlab/workflows/.gitlab-ci.test.yml
gewuyou 3bfcf98e21 ci: 添加 GitLab CI/CD 配置并实现自动化流程- 新增 .gitlab-ci.main.yml、.gitlab-ci.other.yml 和 .gitlab-ci.test.yml 文件
- 实现了 build、tag、publish、reset 和 mirror等阶段的自动化流程
- 添加了 check 和 test 分支的构建和发布配置
- 更新了 build.gradle.kts 和 settings.gradle.kts 文件,调整了项目配置
- 新增 MdcContextElement 和 CoroutineMdcWebFilter 类,用于协程中的 MDC 上下文传播
2025-07-16 12:16:32 +08:00

25 lines
414 B
YAML

stages:
- build
- publish
# 🧪 test 构建
build:
stage: build
rules:
- if: '$CI_COMMIT_BRANCH == "test"'
script:
- ./gradlew clean build
tags:
- java
# 🧪 test 发布 SNAPSHOT 包(允许覆盖)
publish:
stage: publish
needs: ["build"]
rules:
- if: '$CI_COMMIT_BRANCH == "test"'
script:
- ./gradlew publishMavenJavaPublicationToGitLabRepository
tags:
- java