parent
2031f9a6dd
commit
9bee4b02c9
6 changed files with 6 additions and 144 deletions
|
@ -1,50 +0,0 @@
|
||||||
when:
|
|
||||||
instance: ci.kokuwa.io
|
|
||||||
repo: keycloak/keycloak-event-metrics
|
|
||||||
event: [manual, push]
|
|
||||||
branch: main
|
|
||||||
path: [.woodpecker/deploy.yaml, Dockerfile, pom.xml, src/main/**]
|
|
||||||
|
|
||||||
services:
|
|
||||||
- name: dockerd
|
|
||||||
image: kokuwaio/dockerd
|
|
||||||
privileged: true
|
|
||||||
ports: [2375, 8080]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
|
|
||||||
maven:
|
|
||||||
image: maven:3.9.10-eclipse-temurin-17
|
|
||||||
commands: mvn deploy
|
|
||||||
environment:
|
|
||||||
MAVEN_ARGS: --batch-mode --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}
|
|
||||||
|
|
||||||
image:
|
|
||||||
image: kokuwaio/buildctl
|
|
||||||
settings:
|
|
||||||
name:
|
|
||||||
- docker.io/kokuwaio/keycloak-event-metrics:snapshot
|
|
||||||
- ghcr.io/kokuwaio/keycloak-event-metrics:snapshot
|
|
||||||
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: snapshot
|
|
|
@ -1,17 +0,0 @@
|
||||||
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: monitoring-and-observability
|
|
||||||
username: {from_secret: dockerhub_username}
|
|
||||||
password: {from_secret: dockerhub_password}
|
|
|
@ -1,26 +0,0 @@
|
||||||
when:
|
|
||||||
event: [manual, pull_request, push]
|
|
||||||
branch: main
|
|
||||||
path: [.woodpecker/lint.yaml, renovate.json, Dockerfile, "**/*.y*ml", "**/*.md"]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
|
|
||||||
renovate:
|
|
||||||
image: kokuwaio/renovate-config-validator
|
|
||||||
depends_on: []
|
|
||||||
when: [path: [.woodpecker/lint.yaml, renovate.json]]
|
|
||||||
|
|
||||||
yaml:
|
|
||||||
image: kokuwaio/yamllint
|
|
||||||
depends_on: []
|
|
||||||
when: [path: [.woodpecker/lint.yaml, .yamllint.yaml, "**/*.y*ml"]]
|
|
||||||
|
|
||||||
markdown:
|
|
||||||
image: kokuwaio/markdownlint
|
|
||||||
depends_on: []
|
|
||||||
when: [path: [.woodpecker/lint.yaml, .markdownlint.yaml, "**/*.md"]]
|
|
||||||
|
|
||||||
dockerfile:
|
|
||||||
image: kokuwaio/hadolint
|
|
||||||
depends_on: []
|
|
||||||
when: [path: [.woodpecker/lint.yaml, Dockerfile]]
|
|
|
@ -1,7 +1,6 @@
|
||||||
when:
|
when:
|
||||||
instance: ci.kokuwa.io
|
instance: ci.kokuwa.io
|
||||||
repo: keycloak/keycloak-event-metrics
|
repo: keycloak/keycloak-event-metrics
|
||||||
event: deployment
|
|
||||||
branch: main
|
branch: main
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -15,7 +14,13 @@ steps:
|
||||||
- git config commit.gpgsign true
|
- git config commit.gpgsign true
|
||||||
- git config gpg.format ssh
|
- git config gpg.format ssh
|
||||||
- git config user.signingkey /tmp/sign.key
|
- git config user.signingkey /tmp/sign.key
|
||||||
|
- echo 1
|
||||||
|
- echo $GIT_SIGN_KEY
|
||||||
|
- echo 2
|
||||||
- echo $GIT_SIGN_KEY > /tmp/sign.key
|
- echo $GIT_SIGN_KEY > /tmp/sign.key
|
||||||
|
- echo 3
|
||||||
|
- cat /tmp/sign.key
|
||||||
|
- echo 4
|
||||||
# release & write version to env file for image
|
# release & write version to env file for image
|
||||||
- mvn release:prepare release:perform
|
- mvn release:prepare release:perform
|
||||||
- echo "VERSION=$(mvn help:evaluate --quiet --file=target/checkout/pom.xml -Dexpression=project.version -DforceStdout)" > maven.env
|
- echo "VERSION=$(mvn help:evaluate --quiet --file=target/checkout/pom.xml -Dexpression=project.version -DforceStdout)" > maven.env
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
when:
|
|
||||||
event: [manual, pull_request]
|
|
||||||
path: [.woodpecker/verify.yaml, pom.xml, src/**]
|
|
||||||
|
|
||||||
services:
|
|
||||||
- name: dockerd
|
|
||||||
image: kokuwaio/dockerd
|
|
||||||
privileged: true
|
|
||||||
ports: [2375, 8080]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
|
|
||||||
test:
|
|
||||||
image: maven:3.9.10-eclipse-temurin-17
|
|
||||||
commands: mvn verify -P-deploy
|
|
||||||
environment:
|
|
||||||
MAVEN_ARGS: --batch-mode --color=always --no-transfer-progress --settings=.woodpecker/maven/settings.xml
|
|
||||||
|
|
||||||
image:
|
|
||||||
image: kokuwaio/buildctl
|
|
||||||
settings:
|
|
||||||
platform: [linux/amd64, linux/arm64]
|
|
||||||
when:
|
|
||||||
instance: ci.kokuwa.io
|
|
|
@ -1,26 +0,0 @@
|
||||||
when:
|
|
||||||
event: [manual, pull_request]
|
|
||||||
path: [.woodpecker/versions.yaml, pom.xml, src/**]
|
|
||||||
|
|
||||||
depends_on: [verify]
|
|
||||||
matrix:
|
|
||||||
KEYCLOAK_VERSION:
|
|
||||||
- 22.0.5
|
|
||||||
- 23.0.7
|
|
||||||
- 24.0.5
|
|
||||||
- 25.0.6
|
|
||||||
- 26.2.5
|
|
||||||
|
|
||||||
services:
|
|
||||||
- name: dockerd
|
|
||||||
image: kokuwaio/dockerd
|
|
||||||
privileged: true
|
|
||||||
ports: [2375, 8080]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
|
|
||||||
test:
|
|
||||||
image: maven:3.9.10-eclipse-temurin-17
|
|
||||||
commands: mvn verify -Dversion.org.keycloak.test="$KEYCLOAK_VERSION" -P-deploy,-check
|
|
||||||
environment:
|
|
||||||
MAVEN_ARGS: --batch-mode --color=always --no-transfer-progress --settings=.woodpecker/maven/settings.xml
|
|
Loading…
Add table
Add a link
Reference in a new issue