From 01f93ab9e18a8c84257808d6a8d1b4370e484155 Mon Sep 17 00:00:00 2001 From: Jeromy Cannon Date: Mon, 16 Oct 2023 15:21:46 +0100 Subject: [PATCH] multi-arch support Signed-off-by: Jeromy Cannon --- build.gradle.kts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 7a3a0ddfa..4b7ca89ea 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -30,9 +30,15 @@ repositories { val appVersion = project.version.toString() fun createDockerBuildTask(taskName: String, containerName: String) { - tasks.register(taskName) { + tasks.register(taskName + "LinuxAmd64") { inputDir.set(file("docker/${containerName}")) images.add("ghcr.io/hashgraph/full-stack-testing/${containerName}:${appVersion}") + platform = "linux/amd64" + } + tasks.register(taskName + "LinuxArm64") { + inputDir.set(file("docker/${containerName}")) + images.add("ghcr.io/hashgraph/full-stack-testing/${containerName}:${appVersion}") + platform = "linux/arm64" } }