Add generic URL output to modules/artifiact-registry (#2448)
This commit is contained in:
@@ -230,8 +230,8 @@ module "registry-docker" {
|
||||
|
||||
| name | description | sensitive |
|
||||
|---|---|:---:|
|
||||
| [docker_image_path](outputs.tf#L17) | Repository path for Docker images. | |
|
||||
| [id](outputs.tf#L27) | Fully qualified repository id. | |
|
||||
| [name](outputs.tf#L32) | Repository name. | |
|
||||
| [repository](outputs.tf#L37) | Repository object. | |
|
||||
| [id](outputs.tf#L17) | Fully qualified repository id. | |
|
||||
| [name](outputs.tf#L22) | Repository name. | |
|
||||
| [repository](outputs.tf#L27) | Repository object. | |
|
||||
| [url](outputs.tf#L32) | Repository URL. | |
|
||||
<!-- END TFDOC -->
|
||||
|
||||
@@ -14,16 +14,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
output "docker_image_path" {
|
||||
description = "Repository path for Docker images."
|
||||
value = join("/", [
|
||||
"${var.location}-${local.format_string}.pkg.dev",
|
||||
var.project_id,
|
||||
var.name
|
||||
])
|
||||
depends_on = [google_artifact_registry_repository.registry]
|
||||
}
|
||||
|
||||
output "id" {
|
||||
description = "Fully qualified repository id."
|
||||
value = google_artifact_registry_repository.registry.id
|
||||
@@ -38,3 +28,13 @@ output "repository" {
|
||||
description = "Repository object."
|
||||
value = google_artifact_registry_repository.registry
|
||||
}
|
||||
|
||||
output "url" {
|
||||
description = "Repository URL."
|
||||
value = join("/", [
|
||||
"${var.location}-${local.format_string}.pkg.dev",
|
||||
var.project_id,
|
||||
var.name
|
||||
])
|
||||
depends_on = [google_artifact_registry_repository.registry]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user