kreuzwerker/terraform-provider-docker

Docker image trigger is not working

amaringale283 opened this issue · 0 comments

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.