Reconfigure for forgejo/woodpecker
Some checks failed
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Stephan Schnabel 2025-05-28 20:01:57 +02:00
parent 1d5b9eeb99
commit c98864e074
Signed by: stephan.schnabel
SSH key fingerprint: SHA256:99zuzxNGFb5/5P+E/O7ONU2qhUojUe/D8rIPTW+9Xp0
12 changed files with 162 additions and 138 deletions

29
.woodpecker/build.yaml Normal file
View file

@ -0,0 +1,29 @@
when:
event: [manual, push]
branch: main
path: [.woodpecker/build.yaml, pom.xml, src/**]
services:
- name: dockerd
image: kokuwaio/dockerd
ports: [2375, 8080]
steps:
build:
image: maven:3.9.9-eclipse-temurin-17
commands:
- env | sort
- mvn deploy --settings=.woodpecker/maven/settings.xml -Dmaven.test.redirectTestOutputToFile=true -X
environment:
NEXUS_USERNAME: {from_secret: nexus_username}
NEXUS_PASSWORD: {from_secret: nexus_password}
debug:
image: kokuwaio/dockerd
commands:
- docker ps --all
- docker logs keylcoak
- exit 1
when:
status: failure

21
.woodpecker/lint.yaml Normal file
View file

@ -0,0 +1,21 @@
when:
event: [manual, pull_request, push]
branch: main
path: [.woodpecker/lint.yaml, renovate.json, "**/*.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"]]

View file

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
<interactiveMode>false</interactiveMode>
<localRepository>/woodpecker/.m2</localRepository>
<servers>
<server>
<id>sonatype-nexus</id>
<username>${env.NEXUS_USERNAME}</username>
<password>${env.NEXUS_PASSWORD}</password>
</server>
</servers>
<mirrors>
<mirror>
<url>http://mirror.woodpecker.svc/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
</settings>

23
.woodpecker/verify.yaml Normal file
View file

@ -0,0 +1,23 @@
when:
event: [manual, pull_request]
path: [.woodpecker/verify.yaml, pom.xml, src/**]
matrix:
KEYCLOAK_VERSION:
- 22.0.5
- 23.0.7
- 24.0.5
- 25.0.6
- 26.0.8
- 26.1.5
- 26.2.5
services:
- name: dockerd
image: kokuwaio/dockerd
ports: [2375, 8080]
steps:
verify:
image: maven:3.9.9-eclipse-temurin-17
commands: mvn verify --settings=.woodpecker/maven/settings.xml -Dversion.org.keycloak.test=$KEYCLOAK_VERSION