Switch to woodpecker CI
parent
50751166df
commit
d0f6dc985b
72
.drone.yml
72
.drone.yml
|
@ -1,41 +1,33 @@
|
||||||
---
|
pipeline:
|
||||||
kind: pipeline
|
build:
|
||||||
type: docker
|
image: "eclipse-temurin:17-jdk"
|
||||||
name: default
|
commands:
|
||||||
steps:
|
- "./gradlew assemble"
|
||||||
- name: "Build"
|
test:
|
||||||
image: "eclipse-temurin:17-jdk"
|
image: "eclipse-temurin:17-jdk"
|
||||||
commands:
|
commands:
|
||||||
- "./gradlew assemble"
|
- "./gradlew test"
|
||||||
- name: "Test"
|
|
||||||
image: "eclipse-temurin:17-jdk"
|
|
||||||
commands:
|
|
||||||
- "./gradlew test"
|
|
||||||
|
|
||||||
- name: "Create Release"
|
release:
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
settings:
|
settings:
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: "gitea_api_key"
|
from_secret: "gitea_api_key"
|
||||||
base_url:
|
base_url:
|
||||||
from_secret: "gitea_base_url"
|
from_secret: "gitea_base_url"
|
||||||
files: build/libs/DLib-*.jar
|
files: build/libs/DLib-*.jar
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
- name: "Publish to Maven"
|
maven:
|
||||||
image: "eclipse-temurin:17-jdk"
|
image: "eclipse-temurin:17-jdk"
|
||||||
commands:
|
commands:
|
||||||
- "./gradlew publishReleasePublicationToMavenRepository"
|
- "./gradlew publishReleasePublicationToMavenRepository"
|
||||||
environment:
|
environment:
|
||||||
MAVEN_REPO_URL:
|
MAVEN_REPO_URL:
|
||||||
from_secret: maven_repo_url
|
from_secret: maven_repo_url
|
||||||
MAVEN_REPO_TOKEN:
|
MAVEN_REPO_TOKEN:
|
||||||
from_secret: gitea_api_key
|
from_secret: gitea_api_key
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
- push
|
|
||||||
- tag
|
|
||||||
|
|
Loading…
Reference in New Issue