Skip to content

Commit

Permalink
✨ feat(build.gradle): Add support for multi-platform Docker images …
Browse files Browse the repository at this point in the history
…and update cache paths.
  • Loading branch information
vnobo committed Dec 16, 2024
1 parent 78bec92 commit 7077002
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,25 @@ configure(subprojects - project(":boot")) { project ->
tasks.named("bootBuildImage") {
createdDate = "now"
imageName = "${rootProject.name}-${project.name}"
imagePlatform = ["linux/amd64", "linux/arm64"]
environment = [
"BPE_DELIM_JAVA_TOOL_OPTIONS" : " ",
"BPE_APPEND_JAVA_TOOL_OPTIONS": "-Dfile.encoding=UTF-8 " +
"-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager"
]
buildWorkspace {
bind {
source = "/tmp/cache-${rootProject.name}-${project.name}.work"
source = "/home/runner/work/plate/plate/.gradle/build/cache-${rootProject.name}-${project.name}.work"
}
}
buildCache {
bind {
source = "/tmp/cache-${rootProject.name}-${project.name}.build"
source = "/home/runner/work/plate/plate/.gradle/build/cache-${rootProject.name}-${project.name}.build"
}
}
launchCache {
bind {
source = "/tmp/cache-${rootProject.name}-${project.name}.launch"
source = "/home/runner/work/plate/plate/.gradle/build/cache-${rootProject.name}-${project.name}.launch"
}
}
}
Expand Down

0 comments on commit 7077002

Please sign in to comment.