67 lines
2.5 KiB
YAML
67 lines
2.5 KiB
YAML
when:
|
|
instance: ci.kokuwa.io
|
|
repo: keycloak/keycloak-event-metrics
|
|
event: [manual, push]
|
|
branch: main
|
|
path: [.woodpecker/build.yaml, Dockerfile, pom.xml, src/main/**]
|
|
|
|
services:
|
|
- name: dockerd
|
|
image: kokuwaio/dockerd
|
|
privileged: true
|
|
ports: [2375, 8080]
|
|
|
|
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.10-eclipse-temurin-17
|
|
commands: mvn deploy
|
|
environment:
|
|
MAVEN_ARGS: --color=always --no-transfer-progress --settings=.woodpecker/maven/settings.xml
|
|
MAVEN_GPG_KEY: {from_secret: woodpecker_gpg_key}
|
|
SONATYPE_ORG_USERNAME: {from_secret: sonatype_org_username}
|
|
SONATYPE_ORG_PASSWORD: {from_secret: sonatype_org_password}
|
|
|
|
release:
|
|
depends_on: []
|
|
image: maven:3.9.10-eclipse-temurin-17
|
|
commands:
|
|
- git config user.email "$GIT_USER_EMAIL"
|
|
- git config user.name "$GIT_USER_NAME"
|
|
- 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}
|