feat: Implement tag triggers for docker_tag resource (#702)

This commit is contained in:
Martin 2025-04-18 18:00:22 +02:00 committed by GitHub
parent 98ccee6b68
commit 5aced9fca7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View file

@ -20,6 +20,10 @@ Creates a docker tag. It has the exact same functionality as the `docker tag` co
- `source_image` (String) Name of the source image.
- `target_image` (String) Name of the target image.
### Optional
- `tag_triggers` (Set of String) List of values which cause the tag to be (re)created. This is useful for triggering a new tag when the source image changes.
### Read-Only
- `id` (String) The ID of this resource.

View file

@ -27,6 +27,14 @@ func resourceDockerTag() *schema.Resource {
Required: true,
ForceNew: true,
},
"tag_triggers": {
Type: schema.TypeSet,
Description: "List of values which cause the tag to be (re)created. This is useful for triggering a new tag when the source image changes.",
Optional: true,
ForceNew: true,
Elem: &schema.Schema{Type: schema.TypeString},
Set: schema.HashString,
},
},
}
}