123
Some checks failed
ci/woodpecker/push/verify/4 Pipeline is pending
ci/woodpecker/push/verify/5 Pipeline is pending
ci/woodpecker/push/verify/6 Pipeline is pending
ci/woodpecker/push/verify/7 Pipeline is pending
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/verify/3 Pipeline failed
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/push/verify/1 Pipeline failed
ci/woodpecker/push/verify/2 Pipeline failed

This commit is contained in:
Stephan Schnabel 2025-05-28 20:32:45 +02:00
parent eb13eb6455
commit bde21ce901
Signed by: stephan.schnabel
SSH key fingerprint: SHA256:99zuzxNGFb5/5P+E/O7ONU2qhUojUe/D8rIPTW+9Xp0
2 changed files with 14 additions and 7 deletions

View file

@ -5,13 +5,13 @@ when:
matrix:
KEYCLOAK_VERSION:
# - 22.0.5
# - 23.0.7
# - 24.0.5
# - 25.0.6
# - 26.0.8
# - 26.1.5
- 26.2.1
- 22.0.5
- 23.0.7
- 24.0.5
- 25.0.6
- 26.0.8
- 26.1.5
- 26.2.5
services:
- name: dockerd

View file

@ -31,6 +31,7 @@ public class KeycloakExtension implements BeforeAllCallback, ParameterResolver {
private static Prometheus prometheus;
@Override
@SuppressWarnings({ "resource", "deprecation" })
public void beforeAll(ExtensionContext context) throws Exception {
if (client != null) {
@ -52,6 +53,9 @@ public class KeycloakExtension implements BeforeAllCallback, ParameterResolver {
// create and start container
System.out.println(System.getenv("CI") == null);
System.out.println(System.getenv("CI") == null);
System.out.println(System.getenv("CI") == null);
@SuppressWarnings({ "resource", "deprecation" })
var container = (System.getenv("CI") == null
? new GenericContainer<>(image).withExposedPorts(8080)
@ -70,6 +74,9 @@ public class KeycloakExtension implements BeforeAllCallback, ParameterResolver {
.withStartupTimeout(Duration.parse(timeout))
.waitingFor(Wait.forHttp("/health").forPort(8080))
.withCommand("start-dev");
System.out.println(container);
System.out.println(container);
System.out.println(container);
try {
container.start();
} catch (RuntimeException e) {