From beb356e75f76cb20def0e1744ba5f2065b2be03d Mon Sep 17 00:00:00 2001 From: Stephan Schnabel Date: Fri, 27 Jun 2025 21:01:24 +0200 Subject: [PATCH] chore: remove github actions --- .github/README.md | 6 +++--- .github/workflows/build.yaml | 42 ------------------------------------ .github/workflows/lint.yaml | 23 -------------------- .woodpecker/deploy.yaml | 13 ++++++++++- .woodpecker/dockerhub.yaml | 17 --------------- .yamllint.yaml | 4 ---- README.md | 6 +++--- 7 files changed, 18 insertions(+), 93 deletions(-) delete mode 100644 .github/workflows/build.yaml delete mode 100644 .github/workflows/lint.yaml delete mode 100644 .woodpecker/dockerhub.yaml diff --git a/.github/README.md b/.github/README.md index 662ce3d..b95b40f 100644 --- a/.github/README.md +++ b/.github/README.md @@ -2,13 +2,13 @@ Provides metrics for Keycloak user/admin events and user/client/session count. Tested on Keycloak [22-26](.woodpecker/verify.yaml#L7-L11). -[![Maven Central](https://img.shields.io/maven-central/v/io.kokuwa.keycloak/keycloak-event-metrics.svg?label=Maven%20Central)](https://central.sonatype.com/search?namespace=io.kokuwa.keycloak&q=keycloak-event-metrics) +[![maven](https://img.shields.io/maven-central/v/io.kokuwa.keycloak/keycloak-event-metrics.svg?label=maven)](https://central.sonatype.com/artifact/io.kokuwa.keycloak/keycloak-event-metrics) [![pulls](https://img.shields.io/docker/pulls/kokuwaio/keycloak-event-metrics)](https://hub.docker.com/r/kokuwaio/keycloak-event-metrics) [![size](https://img.shields.io/docker/image-size/kokuwaio/keycloak-event-metrics)](https://hub.docker.com/r/kokuwaio/keycloak-event-metrics) [![dockerfile](https://img.shields.io/badge/source-Dockerfile%20-blue)](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/src/branch/main/Dockerfile) -[![license](https://img.shields.io/badge/License-EUPL%201.2-blue)](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/src/branch/main/LICENSE) -[![prs](https://img.shields.io/gitea/pull-requests/open/kokuwaio/keycloak-event-metrics?gitea_url=https%3A%2F%2Fgit.kokuwa.io)](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/pulls) +[![license](https://img.shields.io/badge/license-EUPL%201.2-blue)](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/src/branch/main/LICENSE) [![issues](https://img.shields.io/gitea/issues/open/kokuwaio/keycloak-event-metrics?gitea_url=https%3A%2F%2Fgit.kokuwa.io)](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/issues) +[![prs](https://img.shields.io/gitea/pull-requests/open/kokuwaio/keycloak-event-metrics?gitea_url=https%3A%2F%2Fgit.kokuwa.io)](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/pulls) [![build](https://ci.kokuwa.io/api/badges/kokuwaio/keycloak-event-metrics/status.svg)](https://ci.kokuwa.io/repos/kokuwaio/keycloak-event-metrics/) For more documention see: [git.kokuwa.io/kokuwaio/keycloak-event-metrics](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml deleted file mode 100644 index 5d30921..0000000 --- a/.github/workflows/build.yaml +++ /dev/null @@ -1,42 +0,0 @@ -name: Verify - -on: - - pull_request - - push: - branches: [main] - -env: - MAVEN_ARGS: --batch-mode --color=always --no-transfer-progress - -jobs: - - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@main - - uses: actions/setup-java@main - with: - distribution: temurin - java-version: 17 - cache: maven - - run: mvn verify - - versions: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - version: - - 22.0.5 - - 23.0.7 - - 24.0.5 - - 25.0.6 - - 26.2.5 - steps: - - uses: actions/checkout@main - - uses: actions/setup-java@main - with: - distribution: temurin - java-version: 17 - cache: maven - - run: mvn verify -Dversion.org.keycloak.test=${{ matrix.version }} diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml deleted file mode 100644 index af980fa..0000000 --- a/.github/workflows/lint.yaml +++ /dev/null @@ -1,23 +0,0 @@ -name: Lint - -on: push - -jobs: - - renovate: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@main - - uses: docker://kokuwaio/renovate-config-validator - - markdownlint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@main - - uses: docker://kokuwaio/markdownlint - - yamllint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@main - - uses: docker://kokuwaio/yamllint diff --git a/.woodpecker/deploy.yaml b/.woodpecker/deploy.yaml index a562c15..7916e19 100644 --- a/.woodpecker/deploy.yaml +++ b/.woodpecker/deploy.yaml @@ -3,7 +3,7 @@ when: repo: kokuwaio/keycloak-event-metrics event: [manual, push] branch: main - path: [.woodpecker/deploy.yaml, Dockerfile, pom.xml, src/main/**] + path: [.woodpecker/deploy.yaml, README.md, Dockerfile, pom.xml, src/main/**] services: - name: dockerd @@ -48,3 +48,14 @@ steps: org.opencontainers.image.licenses: EUPL-1.2 org.opencontainers.image.ref.name: kokuwaio/keycloak-event-metrics org.opencontainers.image.version: snapshot + + dockerhub: + 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} + when: + path: [README.md] diff --git a/.woodpecker/dockerhub.yaml b/.woodpecker/dockerhub.yaml deleted file mode 100644 index df265b7..0000000 --- a/.woodpecker/dockerhub.yaml +++ /dev/null @@ -1,17 +0,0 @@ -when: - instance: ci.kokuwa.io - repo: kokuwaio/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} diff --git a/.yamllint.yaml b/.yamllint.yaml index 8011808..21966f2 100644 --- a/.yamllint.yaml +++ b/.yamllint.yaml @@ -13,7 +13,3 @@ rules: quoted-strings: quote-type: double required: only-when-needed - - # allow everything on keys - truthy: - check-keys: false diff --git a/README.md b/README.md index e0802e1..b7d0bb0 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,13 @@ Provides metrics for Keycloak user/admin events and user/client/session count. Tested on Keycloak [22-26](.woodpecker/verify.yaml#L7-L11). -[![Maven Central](https://img.shields.io/maven-central/v/io.kokuwa.keycloak/keycloak-event-metrics.svg?label=Maven%20Central)](https://central.sonatype.com/search?namespace=io.kokuwa.keycloak&q=keycloak-event-metrics) +[![maven](https://img.shields.io/maven-central/v/io.kokuwa.keycloak/keycloak-event-metrics.svg?label=maven)](https://central.sonatype.com/artifact/io.kokuwa.keycloak/keycloak-event-metrics) [![pulls](https://img.shields.io/docker/pulls/kokuwaio/keycloak-event-metrics)](https://hub.docker.com/r/kokuwaio/keycloak-event-metrics) [![size](https://img.shields.io/docker/image-size/kokuwaio/keycloak-event-metrics)](https://hub.docker.com/r/kokuwaio/keycloak-event-metrics) [![dockerfile](https://img.shields.io/badge/source-Dockerfile%20-blue)](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/src/branch/main/Dockerfile) -[![license](https://img.shields.io/badge/License-EUPL%201.2-blue)](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/src/branch/main/LICENSE) -[![prs](https://img.shields.io/gitea/pull-requests/open/kokuwaio/keycloak-event-metrics?gitea_url=https%3A%2F%2Fgit.kokuwa.io)](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/pulls) +[![license](https://img.shields.io/badge/license-EUPL%201.2-blue)](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/src/branch/main/LICENSE) [![issues](https://img.shields.io/gitea/issues/open/kokuwaio/keycloak-event-metrics?gitea_url=https%3A%2F%2Fgit.kokuwa.io)](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/issues) +[![prs](https://img.shields.io/gitea/pull-requests/open/kokuwaio/keycloak-event-metrics?gitea_url=https%3A%2F%2Fgit.kokuwa.io)](https://git.kokuwa.io/kokuwaio/keycloak-event-metrics/pulls) [![build](https://ci.kokuwa.io/api/badges/kokuwaio/keycloak-event-metrics/status.svg)](https://ci.kokuwa.io/repos/kokuwaio/keycloak-event-metrics/) ## Why?