mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2025-12-18 23:06:10 -05:00
feat: Implement tag triggers for docker_tag resource (#702)
This commit is contained in:
parent
98ccee6b68
commit
5aced9fca7
2 changed files with 12 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue