Skip to content

Commit

Permalink
Add target parameter to BeamDockerPlugin (#32890)
Browse files Browse the repository at this point in the history
  • Loading branch information
damondouglas authored Oct 22, 2024
1 parent 8d22fc2 commit f28ca3c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit f28ca3c

Please sign in to comment.