chore: refactor docker compose env's
Tests / build (push) Successful in 6m41s
Tests / test (push) Failing after 12m31s
Tests / lint (push) Successful in 15m28s

This commit is contained in:
2026-08-04 23:07:58 +02:00
parent b60e4aa457
commit 436fc02b55
16 changed files with 86 additions and 63 deletions
-34
View File
@@ -58,40 +58,6 @@ tasks.withType<Test>().configureEach {
jvmArgs("-javaagent:$agentJar")
}
}
tasks.test {
dependsOn("copyEnv")
}
tasks.register<Copy>("copyEnv") {
group = "docker"
description = "copy the default dotenv file"
from("docker")
into("docker")
rename {
it.removeSuffix(".template")
}
include(".env.template")
eachFile {
if (File("docker/$name").exists()) {
exclude()
}
}
val files =
buildList {
add(File("docker/postgresql.secret"))
if (!project.hasProperty("ci")) {
add(File("docker/pgadmin.secret"))
}
}
outputs.files(*files.toTypedArray())
doLast {
files.forEach {
if (!it.exists()) {
it.writeText("changeit")
}
}
}
}
dependencies {
implementation("io.ktor:ktor-server-core-jvm")