ci: add docker compose for CI (without tools)

This commit is contained in:
2025-04-14 23:40:25 +02:00
parent 7252004e6d
commit c9105cafae
3 changed files with 17 additions and 3 deletions
+9 -1
View File
@@ -45,7 +45,15 @@ tasks.withType<Test>().configureEach {
}
dockerCompose {
useComposeFiles.set(listOf("docker/docker-compose-test.yaml"))
val composeFile =
if (project.hasProperty("ci")) {
// Use docker-compose-ci.yaml for the CI
"docker/docker-compose-ci.yaml"
} else {
// Use docker-compose-test.yaml for local tests
"docker/docker-compose-test.yaml"
}
useComposeFiles.set(listOf(composeFile))
setProjectName("event-demo-test")
}