added possibility to list all repos of an organisation

This commit is contained in:
2023-07-19 20:52:36 +02:00
parent 48f5c3ee3c
commit 483bda1033
8 changed files with 60 additions and 9 deletions

View File

@ -123,3 +123,15 @@ output "token" {
value = resource.gitea_token.test_token.token
sensitive = true
}
data "gitea_repo" "org_repos" {
name = each.key
username = gitea_org.org1.name
for_each = {
for repo in resource.gitea_org.org1.repos : repo => repo
}
}
output "repos" {
value = data.gitea_repo.org_repos["repo1-in-org1"].clone_url
}

View File

@ -2,7 +2,7 @@ terraform {
required_providers {
gitea = {
source = "terraform.local/lerentis/gitea"
version = "0.14.1"
version = "0.15.0"
}
}
}

View File

@ -2,7 +2,7 @@ terraform {
required_providers {
gitea = {
source = "Lerentis/gitea"
version = "0.14.1"
version = "0.15.0"
}
}
}