You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by da...@apache.org on 2024/10/22 16:58:24 UTC
(beam) branch master updated: Add target parameter to BeamDockerPlugin (#32890)
This is an automated email from the ASF dual-hosted git repository.
damccorm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new f28ca3ca106 Add target parameter to BeamDockerPlugin (#32890)
f28ca3ca106 is described below
commit f28ca3ca10647ae5d98cfe65a196929c6972711d
Author: Damon <da...@users.noreply.github.com>
AuthorDate: Tue Oct 22 09:58:16 2024 -0700
Add target parameter to BeamDockerPlugin (#32890)
---
.../src/main/groovy/org/apache/beam/gradle/BeamDockerPlugin.groovy | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamDockerPlugin.groovy b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamDockerPlugin.groovy
index 388069a0398..b3949223f07 100644
--- a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamDockerPlugin.groovy
+++ b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamDockerPlugin.groovy
@@ -59,6 +59,7 @@ class BeamDockerPlugin implements Plugin<Project> {
boolean load = false
boolean push = false
String builder = null
+ String target = null
File resolvedDockerfile = null
File resolvedDockerComposeTemplate = null
@@ -289,6 +290,9 @@ class BeamDockerPlugin implements Plugin<Project> {
} else {
buildCommandLine.addAll(['-t', "${-> ext.name}", '.'])
}
+ if (ext.target != null && ext.target != "") {
+ buildCommandLine.addAll '--target', ext.target
+ }
logger.debug("${buildCommandLine}" as String)
return buildCommandLine
}