Skip to content

Commit

Permalink
All projects is relative to the project invoking it so set it to the …
Browse files Browse the repository at this point in the history
…root project.
  • Loading branch information
nigelgbanks committed Apr 5, 2021
1 parent 0fb4711 commit 45c4fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/tasks/DockerCompose.kt
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ abstract class DockerCompose : DockerClient() {
fun pull() = dockerCompose.services.keys.mapNotNull { name ->
// Find services that do not match any projects and pull them as they must refer to an external image.
// Other images will be provided by dependency on the image digests.
if (project.allprojects.none { it.isDockerProject && it.name == name }) name else null
if (project.rootProject.allprojects.none { it.isDockerProject && it.name == name }) name else null
}.let { services ->
if (services.isNotEmpty()) {
invoke("pull", *services.toTypedArray())
Expand Down

0 comments on commit 45c4fdf

Please sign in to comment.