Skip to content

Commit

Permalink
Enforce build ordering now that digests are not references to task pr…
Browse files Browse the repository at this point in the history
…operties.
  • Loading branch information
nigelgbanks committed Mar 30, 2021
1 parent 0c6a0d5 commit ccbf01c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/kotlin/tasks/DockerBuild.kt
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ open class DockerBuild : DefaultTask() {
@PathSensitive(PathSensitivity.RELATIVE)
val sourceImageDigests = project.objects.listProperty<RegularFile>().convention(
requiredImages.map { images ->
images.map { image ->
dockerBuildTasks(name)[image]!!.get().digest.get()
images.mapNotNull { image ->
dockerBuildTasks(name)[image]?.get()?.digest?.get()
}
}
)
Expand Down Expand Up @@ -249,6 +249,9 @@ open class DockerBuild : DefaultTask() {

// Check that another process has not removed the image since it was last built.
outputs.upToDateWhen { task -> (task as DockerBuild).imagesExist() }

// Enforce build ordering.

}

// Get list of all DockerBuild tasks with the given name.
Expand Down

0 comments on commit ccbf01c

Please sign in to comment.