Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker image trigger is not working #628

Open
amaringale283 opened this issue Jun 20, 2024 · 0 comments
Open

Docker image trigger is not working #628

amaringale283 opened this issue Jun 20, 2024 · 0 comments

Comments

@amaringale283
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant