f
Some checks failed
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/release Pipeline failed

This commit is contained in:
Stephan Schnabel 2025-06-24 21:19:26 +02:00
parent e9a3c2646b
commit f4567d0394
Signed by: stephan.schnabel
SSH key fingerprint: SHA256:99zuzxNGFb5/5P+E/O7ONU2qhUojUe/D8rIPTW+9Xp0
4 changed files with 52 additions and 22 deletions

View file

@ -2,7 +2,7 @@ when:
instance: ci.kokuwa.io instance: ci.kokuwa.io
repo: keycloak/keycloak-event-metrics repo: keycloak/keycloak-event-metrics
event: [manual, push] event: [manual, push]
branch: main branch: main1
path: [.woodpecker/deploy.yaml, Dockerfile, pom.xml, src/main/**] path: [.woodpecker/deploy.yaml, Dockerfile, pom.xml, src/main/**]
services: services:

View file

@ -1,34 +1,63 @@
when: when:
instance: ci.kokuwa.io instance: ci.kokuwa.io
repo: keycloak/keycloak-event-metrics repo: keycloak/keycloak-event-metrics
event: deployment #event: deployment
branch: main branch: main
services:
- name: dockerd
image: kokuwaio/dockerd
ports: [2375, 8080]
steps: steps:
release: prepare:
depends_on: []
image: maven:3.9.10-eclipse-temurin-17 image: maven:3.9.10-eclipse-temurin-17
commands: commands:
- git config user.email "$GIT_USER_EMAIL" - git config user.email "$GIT_USER_EMAIL"
- echo $HOME
- ls -lA
- ls -lA ~
- pwd
- git config user.name "$GIT_USER_NAME" - git config user.name "$GIT_USER_NAME"
- mvn release:prepare release:perform --settings=.woodpecker/maven/settings.xml - mvn release:prepare
environment: environment:
MAVEN_ARGS: --batch-mode --color=always --no-transfer-progress -DskipTests -DautoPublish=false MAVEN_ARGS: --batch-mode --color=always --no-transfer-progress --settings=.woodpecker/maven/settings.xml
perform:
image: maven:3.9.10-eclipse-temurin-17
commands:
- ls -lA
- ls -lA target
- mvn release:prepare
environment:
MAVEN_ARGS: --batch-mode --color=always --no-transfer-progress --settings=.woodpecker/maven/settings.xml -DautoPublish=false
MAVEN_GPG_KEY: {from_secret: woodpecker_gpg_key} MAVEN_GPG_KEY: {from_secret: woodpecker_gpg_key}
SONATYPE_ORG_USERNAME: {from_secret: sonatype_org_username} SONATYPE_ORG_USERNAME: {from_secret: sonatype_org_username}
SONATYPE_ORG_PASSWORD: {from_secret: sonatype_org_password} SONATYPE_ORG_PASSWORD: {from_secret: sonatype_org_password}
deploy: image:
image: maven:3.9.10-eclipse-temurin-17 image: kokuwaio/buildctl
commands: mvn release:prepare release:perform --settings=.woodpecker/maven/settings.xml settings:
environment: env-file: fail
MAVEN_ARGS: --color=always --no-transfer-progress -DskipTests -DautoPublish=false name:
MAVEN_GPG_KEY: {from_secret: woodpecker_gpg_key} - docker.io/kokuwaio/keycloak-event-metrics:latest
SONATYPE_ORG_USERNAME: {from_secret: sonatype_org_username} - docker.io/kokuwaio/keycloak-event-metrics:$VERSION
SONATYPE_ORG_PASSWORD: {from_secret: sonatype_org_password} - ghcr.io/kokuwaio/keycloak-event-metrics:latest
- ghcr.io/kokuwaio/keycloak-event-metrics:$VERSION
build-args: {MAVEN_MIRROR_CENTRAL: "${MAVEN_MIRROR_CENTRAL}"}
platform: [linux/amd64, linux/arm64]
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}
annotation:
org.opencontainers.image.title: Keycloak 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
org.opencontainers.image.version: $VERSION

View file

@ -257,9 +257,9 @@
<artifactId>maven-release-plugin</artifactId> <artifactId>maven-release-plugin</artifactId>
<version>3.1.1</version> <version>3.1.1</version>
<configuration> <configuration>
<preparationGoals>clean verify</preparationGoals> <preparationGoals>test</preparationGoals>
<preparationProfiles>check</preparationProfiles> <preparationProfiles>check</preparationProfiles>
<goals>deploy</goals> <goals>deploy -DskipITs</goals>
<releaseProfiles>deploy,release</releaseProfiles> <releaseProfiles>deploy,release</releaseProfiles>
<signTag>true</signTag> <signTag>true</signTag>
<scmReleaseCommitComment>@{prefix} prepare release @{releaseLabel} [CI SKIP]</scmReleaseCommitComment> <scmReleaseCommitComment>@{prefix} prepare release @{releaseLabel} [CI SKIP]</scmReleaseCommitComment>

View file

@ -1,4 +1,5 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["local>infrastructure/renovate-config", ":reviewer(stephan.schnabel)"] "extends": ["local>infrastructure/renovate-config", ":reviewer(stephan.schnabel)"],
"pinDigests": false
} }