123
Some checks failed
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Stephan Schnabel 2025-06-01 21:40:41 +02:00
parent a10691adb2
commit 2e9080bdd9
Signed by: stephan.schnabel
SSH key fingerprint: SHA256:99zuzxNGFb5/5P+E/O7ONU2qhUojUe/D8rIPTW+9Xp0
2 changed files with 41 additions and 1 deletions

View file

@ -1,6 +1,6 @@
when:
instance: ci.kokuwa.io
repo: kokuwaio/markdownlint
repo: keycloak/keycloak-event-metrics
event: [manual, push]
branch: main
path: [.woodpecker/build.yaml, pom.xml, src/main/**]
@ -16,6 +16,21 @@ steps:
image: maven:3.9.9-eclipse-temurin-17
commands: mvn deploy --settings=.woodpecker/maven/settings.xml
environment:
MAVEN_ARGS: --batch-mode --color=always --no-transfer-progress -DskipTests
MAVEN_GPG_KEY: {from_secret: woodpecker_gpg_key}
SONATYPE_ORG_USERNAME: {from_secret: sonatype_org_username}
SONATYPE_ORG_PASSWORD: {from_secret: sonatype_org_password}
DOCKER_IO_USERNAME: {from_secret: docker_io_username}
DOCKER_IO_PASSWORD: {from_secret: docker_io_password}
GHCR_IO_USERNAME: {from_secret: ghcr_io_username}
GHCR_IO_PASSWORD: {from_secret: ghcr_io_password}
release:
image: maven:3.9.9-eclipse-temurin-17
commands: mvn release:prepare release:perform --settings=.woodpecker/maven/settings.xml
environment:
MAVEN_ARGS: --batch-mode --color=always --no-transfer-progress -DskipTests -DautoPublish=false
MAVEN_GPG_KEY: {from_secret: woodpecker_gpg_key}
SONATYPE_ORG_USERNAME: {from_secret: sonatype_org_username}
SONATYPE_ORG_PASSWORD: {from_secret: sonatype_org_password}
DOCKER_IO_USERNAME: {from_secret: docker_io_username}

25
.woodpecker/release.yaml Normal file
View file

@ -0,0 +1,25 @@
when:
instance: ci.kokuwa.io
repo: keycloak/keycloak-event-metrics
event: deployment
branch: main
services:
- name: dockerd
image: kokuwaio/dockerd
ports: [2375, 8080]
steps:
deploy:
image: maven:3.9.9-eclipse-temurin-17
commands: mvn release:prepare release:perform --settings=.woodpecker/maven/settings.xml
environment:
MAVEN_ARGS: --batch-mode --color=always --no-transfer-progress -DskipTests -DautoPublish=false
MAVEN_GPG_KEY: {from_secret: woodpecker_gpg_key}
SONATYPE_ORG_USERNAME: {from_secret: sonatype_org_username}
SONATYPE_ORG_PASSWORD: {from_secret: sonatype_org_password}
DOCKER_IO_USERNAME: {from_secret: docker_io_username}
DOCKER_IO_PASSWORD: {from_secret: docker_io_password}
GHCR_IO_USERNAME: {from_secret: ghcr_io_username}
GHCR_IO_PASSWORD: {from_secret: ghcr_io_password}