init
This commit is contained in:
27
.gitlab-ci.yml
Normal file
27
.gitlab-ci.yml
Normal 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
|
||||
Reference in New Issue
Block a user