terraform-provider-docker icon indicating copy to clipboard operation
terraform-provider-docker copied to clipboard

Docker image trigger is not working

Open amaringale283 opened this issue 1 year ago • 0 comments
trafficstars

The trigger used in resource docker_image is not working as expected. The trigger used in the example given is as follows:

resource "docker_image" "zoo" { name = "zoo" build { context = "." } triggers = { dir_sha1 = sha1(join("", [for f in fileset(path.module, "src/*") : filesha1(f)])) } }

The same trigger works fine with the terraform resource docker_registry_image, but does not works with the resource docker_image. This can lead to issues as each time the docker image is getting built when using CI/CD pipeline.

amaringale283 avatar Jun 20 '24 06:06 amaringale283