lenient Docker Env properties

This commit is contained in:
Adam 2022-12-05 23:20:54 +01:00
parent deefafe255
commit dd9c9500d3
2 changed files with 7 additions and 3 deletions

View file

@ -61,13 +61,15 @@ tasks.dockerComposeUp {
}
val kafkatorioServerToken: String by project
val kafkatorioServerToken: String? by project
tasks.dockerComposeEnvUpdate {
envProperties {
put("FACTORIO_VERSION", libs.versions.factorio)
put("KAFKATORIO_TOKEN", kafkatorioServerToken)
kafkatorioServerToken?.let { token ->
put("KAFKATORIO_TOKEN", token)
}
}
}