14 lines
460 B
Groovy
14 lines
460 B
Groovy
apply plugin: 'base'
|
|
|
|
tasks.register("buildOssDockerBuildContext", Tar) {
|
|
archiveExtension = 'tar.gz'
|
|
compression = Compression.GZIP
|
|
archiveClassifier = "docker-build-context"
|
|
archiveBaseName = "elasticsearch-oss"
|
|
// Non-local builds don't need to specify an architecture.
|
|
// Make this explicit via the string value.
|
|
with dockerBuildContext("<remote>", true, false)
|
|
}
|
|
|
|
tasks.named("assemble").configure { dependsOn "buildOssDockerBuildContext" }
|