28 lines
537 B
YAML
28 lines
537 B
YAML
clone:
|
|
git:
|
|
image: "woodpeckerci/plugin-git:next"
|
|
pipeline:
|
|
compliance:
|
|
commands:
|
|
- "gradle build"
|
|
- "gradle test"
|
|
image: "gradle:7.4-jdk17"
|
|
when:
|
|
event: pull_request
|
|
build:
|
|
commands:
|
|
- "gradle shadowJar"
|
|
image: "gradle:7.4-jdk17"
|
|
when:
|
|
branch: main
|
|
release:
|
|
image: jolheiser/drone-gitea-main:latest
|
|
settings:
|
|
token:
|
|
from_secret: gitea_token
|
|
base: https://git.jojodev.com
|
|
files:
|
|
- "build/libs/*.jar"
|
|
when:
|
|
branch: main
|