c87b3ac471
Manage Gitea resources via Terraform/Terragrunt with YAML-driven config. Resources managed: - Organisation (unkin) - 28 repositories with settings - 6 teams with members - 13 branch protection rules - 9 Woodpecker CI repo activations - Deploy key module (ready, no keys yet) Config structure: config/<service>/<org>/<type>/<object>.yaml Consul backend for state, Vault for auth tokens.
21 lines
849 B
Terraform
21 lines
849 B
Terraform
resource "gitea_repository" "this" {
|
|
username = var.organisation
|
|
name = var.name
|
|
description = var.description
|
|
private = var.private
|
|
default_branch = var.default_branch
|
|
has_issues = var.has_issues
|
|
has_wiki = var.has_wiki
|
|
has_pull_requests = var.has_pull_requests
|
|
has_projects = var.has_projects
|
|
allow_merge_commits = var.allow_merge_commits
|
|
allow_rebase = var.allow_rebase
|
|
allow_rebase_explicit = var.allow_rebase_explicit
|
|
allow_squash_merge = var.allow_squash_merge
|
|
archived = var.archived
|
|
repo_template = var.repo_template
|
|
website = var.website
|
|
autodetect_manual_merge = var.autodetect_manual_merge
|
|
archive_on_destroy = true
|
|
}
|