Merge branch 'caching' into 'master'
enable build caching See merge request redactmanager/redaction-service!197
This commit is contained in:
commit
f79838687e
@ -76,7 +76,7 @@ tasks.named<BootBuildImage>("bootBuildImage") {
|
|||||||
environment.put("BPE_DELIM_JAVA_TOOL_OPTIONS", " ")
|
environment.put("BPE_DELIM_JAVA_TOOL_OPTIONS", " ")
|
||||||
environment.put("BPE_APPEND_JAVA_TOOL_OPTIONS", "-Dfile.encoding=UTF-8")
|
environment.put("BPE_APPEND_JAVA_TOOL_OPTIONS", "-Dfile.encoding=UTF-8")
|
||||||
|
|
||||||
imageName.set("nexus.knecon.com:5001/red/${project.name}:${project.version}")
|
imageName.set("nexus.knecon.com:5001/red/${project.name}")// must build image with same name always, otherwise the builder will not know which image to use as cache. DO NOT CHANGE!
|
||||||
if (project.hasProperty("buildbootDockerHostNetwork")) {
|
if (project.hasProperty("buildbootDockerHostNetwork")) {
|
||||||
network.set("host")
|
network.set("host")
|
||||||
}
|
}
|
||||||
@ -92,5 +92,8 @@ tasks.named<BootBuildImage>("bootBuildImage") {
|
|||||||
email.set(providers.gradleProperty("mavenEmail").getOrNull())
|
email.set(providers.gradleProperty("mavenEmail").getOrNull())
|
||||||
url.set("https://nexus.knecon.com:5001/")
|
url.set("https://nexus.knecon.com:5001/")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val dockerTag = "nexus.knecon.com:5001/ff/${project.name}:${project.version}"
|
||||||
|
tags.set(listOf(dockerTag))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user