Skip to content

Commit

Permalink
Pull only takes single argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelgbanks committed Mar 31, 2021
1 parent 87b5c6e commit 0fb4711
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/kotlin/tasks/DockerBuild.kt
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,11 @@ open class DockerBuild : DefaultTask() {
val isDockerBuild: Boolean by pluginProject.extra
val isLocalRepository: Boolean by pluginProject.extra
if (!isDockerBuild) {
project.exec {
workingDir = context.dir
commandLine = listOf("docker", "pull") + options.tags.get()
options.tags.get().forEach { tag ->
project.exec {
workingDir = context.dir
commandLine = listOf("docker", "pull", tag)
}
}
// Additionally if pulling from local repository tag them as such.
if (isLocalRepository) {
Expand Down

0 comments on commit 0fb4711

Please sign in to comment.