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
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:
parent
eb13eb6455
commit
bde21ce901
2 changed files with 14 additions and 7 deletions
|
@ -5,13 +5,13 @@ when:
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
KEYCLOAK_VERSION:
|
KEYCLOAK_VERSION:
|
||||||
# - 22.0.5
|
- 22.0.5
|
||||||
# - 23.0.7
|
- 23.0.7
|
||||||
# - 24.0.5
|
- 24.0.5
|
||||||
# - 25.0.6
|
- 25.0.6
|
||||||
# - 26.0.8
|
- 26.0.8
|
||||||
# - 26.1.5
|
- 26.1.5
|
||||||
- 26.2.1
|
- 26.2.5
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: dockerd
|
- name: dockerd
|
||||||
|
|
|
@ -31,6 +31,7 @@ public class KeycloakExtension implements BeforeAllCallback, ParameterResolver {
|
||||||
private static Prometheus prometheus;
|
private static Prometheus prometheus;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@SuppressWarnings({ "resource", "deprecation" })
|
||||||
public void beforeAll(ExtensionContext context) throws Exception {
|
public void beforeAll(ExtensionContext context) throws Exception {
|
||||||
|
|
||||||
if (client != null) {
|
if (client != null) {
|
||||||
|
@ -52,6 +53,9 @@ public class KeycloakExtension implements BeforeAllCallback, ParameterResolver {
|
||||||
|
|
||||||
// create and start container
|
// 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" })
|
@SuppressWarnings({ "resource", "deprecation" })
|
||||||
var container = (System.getenv("CI") == null
|
var container = (System.getenv("CI") == null
|
||||||
? new GenericContainer<>(image).withExposedPorts(8080)
|
? new GenericContainer<>(image).withExposedPorts(8080)
|
||||||
|
@ -70,6 +74,9 @@ public class KeycloakExtension implements BeforeAllCallback, ParameterResolver {
|
||||||
.withStartupTimeout(Duration.parse(timeout))
|
.withStartupTimeout(Duration.parse(timeout))
|
||||||
.waitingFor(Wait.forHttp("/health").forPort(8080))
|
.waitingFor(Wait.forHttp("/health").forPort(8080))
|
||||||
.withCommand("start-dev");
|
.withCommand("start-dev");
|
||||||
|
System.out.println(container);
|
||||||
|
System.out.println(container);
|
||||||
|
System.out.println(container);
|
||||||
try {
|
try {
|
||||||
container.start();
|
container.start();
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue