This commit is contained in:
2024-03-28 01:14:05 +08:00
commit c4892410c4
34 changed files with 1902 additions and 0 deletions

27
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,27 @@
# 使用的镜像
image: gradle:8.5-jdk17
# 阶段
stages:
- build
# 缓存路径配置
cache:
paths:
- .gradle
# 启用此流水线的条件
workflow:
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
before_script:
- chmod +x ./gradlew
# 配置build阶段的工作
package_job:
stage: build
tags:
- main
script:
- echo "Gradle building started..."
- ./gradlew shadowJar
artifacts:
paths:
- build/libs/*.jar