mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-23 05:15:04 +00:00
Use onlyIf for build Docker image task execution (#54047)
This commit switches to using an onlyIf to determine if a build Docker image task execution should occur. This is preferred since it means that the determination is performed at task execution time, rather than during configuration.
This commit is contained in:
parent
4bd853a6f2
commit
c1c9f7a735
@ -190,8 +190,8 @@ void addBuildDockerImage(final String architecture, final boolean oss) {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
buildDockerImageTask.onlyIf { Architecture.current().name().toLowerCase().equals(architecture) }
|
||||||
assemble.dependsOn(buildDockerImageTask)
|
assemble.dependsOn(buildDockerImageTask)
|
||||||
buildDockerImageTask.enabled = Architecture.current().name().toLowerCase().equals(architecture)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (final String architecture : ["aarch64", "x64"]) {
|
for (final String architecture : ["aarch64", "x64"]) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user