w
Some checks failed
ci/woodpecker/manual/versions/4 Pipeline was successful
ci/woodpecker/manual/lint Pipeline failed
ci/woodpecker/manual/versions/2 Pipeline was successful
ci/woodpecker/manual/dockerhub Pipeline failed
ci/woodpecker/manual/build Pipeline failed
ci/woodpecker/manual/versions/5 Pipeline was successful
ci/woodpecker/manual/versions/1 Pipeline was successful
ci/woodpecker/manual/verify Pipeline failed
ci/woodpecker/manual/versions/3 Pipeline was successful

This commit is contained in:
Stephan Schnabel 2025-06-23 22:12:31 +02:00
parent d4cea7aa43
commit 418ea33073
Signed by: stephan.schnabel
SSH key fingerprint: SHA256:99zuzxNGFb5/5P+E/O7ONU2qhUojUe/D8rIPTW+9Xp0
5 changed files with 72 additions and 11 deletions

View file

@ -13,7 +13,38 @@ services:
steps:
image:
image: kokuwaio/buildctl
depends_on: []
settings:
name:
- registry.kokuwa.io/kokuwaio/buildctl:latest
- docker.io/kokuwaio/buildctl:latest
- ghcr.io/kokuwaio/buildctl:latest
auth:
"https://index.docker.io/v1/":
username: {from_secret: docker_io_username}
password: {from_secret: docker_io_password}
ghcr.io:
username: {from_secret: ghcr_io_username}
password: {from_secret: ghcr_io_password}
registry.kokuwa.io:
username: {from_secret: kokuwa_io_username}
password: {from_secret: kokuwa_io_password}
platform: [linux/amd64, linux/arm64]
annotation:
org.opencontainers.image.title: Keycloak plugin for metrics
org.opencontainers.image.description: Provides metrics for Keycloak user/admin events and user/client/session count.
org.opencontainers.image.url: $CI_REPO_URL
org.opencontainers.image.documentation: $CI_REPO_URL/README.md
org.opencontainers.image.source: $CI_REPO_CLONE_URL
org.opencontainers.image.revision: $CI_COMMIT_SHA
org.opencontainers.image.vendor: kokuwa.io
org.opencontainers.image.licenses: EUPL-1.2
org.opencontainers.image.ref.name: kokuwaio/keycloak-event-metrics
deploy:
depends_on: []
image: maven:3.9.9-eclipse-temurin-17
commands: mvn deploy
environment:
@ -23,6 +54,7 @@ steps:
SONATYPE_ORG_PASSWORD: {from_secret: sonatype_org_password}
release:
depends_on: []
image: maven:3.9.9-eclipse-temurin-17
commands:
- git config user.email "$GIT_USER_EMAIL"
@ -33,7 +65,3 @@ steps:
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}

View file

@ -0,0 +1,17 @@
when:
instance: ci.kokuwa.io
repo: keycloak/keycloak-event-metrics
event: [manual, push]
branch: main
path: [.woodpecker/dockerhub.yaml, README.md]
steps:
metadata:
image: kokuwaio/dockerhub-metadata
settings:
repository: kokuwaio/keycloak-event-metrics
description-short: Provides metrics for Keycloak user/admin events and user/client/session count.
categories: [developer-tools, integration-and-delivery]
username: {from_secret: dockerhub_username}
password: {from_secret: dockerhub_password}

View file

@ -15,11 +15,7 @@ steps:
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_ARGS: --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}

20
.woodpecker/verify.yaml Normal file
View file

@ -0,0 +1,20 @@
when:
event: [manual, pull_request]
path: [.woodpecker/verify.yaml, Dockerfile, pom.xml, src/**]
services:
- name: dockerd
image: kokuwaio/dockerd
privileged: true
ports: [2375, 8080]
steps:
test:
image: maven:3.9.9-eclipse-temurin-17
commands: mvn verify --color=always --no-transfer-progress --settings=.woodpecker/maven/settings.xml
image:
image: kokuwaio/buildctl
settings:
platform: [linux/amd64, linux/arm64]

View file

@ -1,6 +1,6 @@
when:
event: [manual, pull_request]
path: [.woodpecker/verify.yaml, pom.xml, src/**]
path: [.woodpecker/versions.yaml, pom.xml, src/**]
matrix:
KEYCLOAK_VERSION:
@ -19,4 +19,4 @@ services:
steps:
test:
image: maven:3.9.9-eclipse-temurin-17
commands: mvn test -Dversion.org.keycloak.test="$KEYCLOAK_VERSION" --color=always --no-transfer-progress --settings=.woodpecker/maven/settings.xml
commands: mvn test -Dversion.org.keycloak.test="$KEYCLOAK_VERSION" -P-dev --color=always --no-transfer-progress --settings=.woodpecker/maven/settings.xml