mirror of
https://github.com/Kichiyaki/terraform-provider-woodpecker.git
synced 2024-06-01 18:28:03 +00:00
1.6 KiB
1.6 KiB
page_title | subcategory | description |
---|---|---|
woodpecker_repository_registry Resource - terraform-provider-woodpecker | This resource allows you to add/remove container registries for specific repositories. When applied, a new registry will be created. When destroyed, that registry will be removed. For more information see the Woodpecker docs https://woodpecker-ci.org/docs/usage/registries. |
woodpecker_repository_registry (Resource)
This resource allows you to add/remove container registries for specific repositories. When applied, a new registry will be created. When destroyed, that registry will be removed. For more information see the Woodpecker docs.
Example Usage
resource "woodpecker_repository" "test_repo" {
full_name = "Kichiyaki/test-repo"
is_trusted = true
visibility = "public"
}
resource "woodpecker_repository_secret" "test" {
repository_id = woodpecker_repository.test_repo.id
address = "docker.io"
username = "test"
password = "test"
}
Schema
Required
address
(String) the address of the registry (e.g. docker.io)password
(String, Sensitive) password used for authenticationrepository_id
(Number) the ID of the repositoryusername
(String) username used for authentication
Read-Only
id
(Number) the id of the registry
Import
Import is supported using the following syntax:
terraform import woodpecker_repository_registry.test "<repository_id>/<address>"