Skip to content

Commit

Permalink
multi-arch support
Browse files Browse the repository at this point in the history
Signed-off-by: Jeromy Cannon <[email protected]>
  • Loading branch information
jeromy-cannon committed Oct 17, 2023
1 parent 5f80826 commit 01f93ab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,15 @@ repositories {
val appVersion = project.version.toString()

fun createDockerBuildTask(taskName: String, containerName: String) {
tasks.register<DockerBuildImage>(taskName) {
tasks.register<DockerBuildImage>(taskName + "LinuxAmd64") {
inputDir.set(file("docker/${containerName}"))
images.add("ghcr.io/hashgraph/full-stack-testing/${containerName}:${appVersion}")
platform = "linux/amd64"
}
tasks.register<DockerBuildImage>(taskName + "LinuxArm64") {
inputDir.set(file("docker/${containerName}"))
images.add("ghcr.io/hashgraph/full-stack-testing/${containerName}:${appVersion}")
platform = "linux/arm64"
}
}

Expand Down

0 comments on commit 01f93ab

Please sign in to comment.