feat: Add triggers attribute to docker_registry_image (#496)

Co-authored-by: WassimKallel <wassimkallel@think-it.io>
This commit is contained in:
Joseph Lenox 2022-12-22 12:48:04 -06:00 committed by GitHub
parent 380cebf01e
commit 9233454972
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -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))
- `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`
- `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

View file

@ -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": {
Type: schema.TypeString,
Description: "The sha256 digest of the image.",