We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be31ada commit 4ed7d19Copy full SHA for 4ed7d19
.pre-commit-config.yaml
@@ -1,6 +1,6 @@
1
repos:
2
- repo: https://github.com/antonbabenko/pre-commit-terraform
3
- rev: v1.83.5
+ rev: v1.86.0
4
hooks:
5
- id: terraform_fmt
6
- id: terraform_wrapper_module_for_each
modules/docker-build/main.tf
@@ -29,9 +29,7 @@ resource "docker_registry_image" "this" {
29
30
keep_remotely = var.keep_remotely
31
32
- triggers = {
33
- image_id = docker_image.this.image_id
34
- }
+ triggers = length(var.triggers) == 0 ? { image_id = docker_image.this.image_id } : var.triggers
35
}
36
37
resource "aws_ecr_repository" "this" {
0 commit comments