Skip to content

Commit

Permalink
feat: Added support for triggers on docker_registry_image resource (#518
Browse files Browse the repository at this point in the history
)

Co-authored-by: Anton Babenko <[email protected]>
  • Loading branch information
IlyesDemineExtVeolia and antonbabenko authored Jan 12, 2024
1 parent be31ada commit 4ed7d19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.83.5
rev: v1.86.0
hooks:
- id: terraform_fmt
- id: terraform_wrapper_module_for_each
Expand Down
4 changes: 1 addition & 3 deletions modules/docker-build/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ resource "docker_registry_image" "this" {

keep_remotely = var.keep_remotely

triggers = {
image_id = docker_image.this.image_id
}
triggers = length(var.triggers) == 0 ? { image_id = docker_image.this.image_id } : var.triggers
}

resource "aws_ecr_repository" "this" {
Expand Down

0 comments on commit 4ed7d19

Please sign in to comment.