mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2025-12-20 22:59:42 -05:00
feat: Add triggers attribute to docker_registry_image (#496)
Co-authored-by: WassimKallel <wassimkallel@think-it.io>
This commit is contained in:
parent
380cebf01e
commit
9233454972
2 changed files with 8 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ resource "docker_registry_image" "helloworld" {
|
||||||
- `build` (Block List, Max: 1) Definition for building the image (see [below for nested schema](#nestedblock--build))
|
- `build` (Block List, Max: 1) Definition for building the image (see [below for nested schema](#nestedblock--build))
|
||||||
- `insecure_skip_verify` (Boolean) If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false`
|
- `insecure_skip_verify` (Boolean) If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false`
|
||||||
- `keep_remotely` (Boolean) If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker registry on destroy operation. Defaults to `false`
|
- `keep_remotely` (Boolean) If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker registry on destroy operation. Defaults to `false`
|
||||||
|
- `triggers` (Map of String) A map of arbitrary strings that, when changed, will force the `docker_registry_image` resource to be replaced. This can be used to rebuild an image when contents of source code folders change or to repush a local image
|
||||||
|
|
||||||
### Read-Only
|
### Read-Only
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -332,6 +332,13 @@ func resourceDockerRegistryImage() *schema.Resource {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"triggers": {
|
||||||
|
Description: "A map of arbitrary strings that, when changed, will force the `docker_registry_image` resource to be replaced. This can be used to rebuild an image when contents of source code folders change or to repush a local image",
|
||||||
|
Type: schema.TypeMap,
|
||||||
|
Optional: true,
|
||||||
|
ForceNew: true,
|
||||||
|
},
|
||||||
|
|
||||||
"sha256_digest": {
|
"sha256_digest": {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Description: "The sha256 digest of the image.",
|
Description: "The sha256 digest of the image.",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue