This repository has been archived on 2026-11-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
terraform-git/README.md
T
unkin-agent d7359d1fc7
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/plan Pipeline was successful
generate tag-protection ruleset for release tags
2026-11-10 21:56:48 +11:00

1.5 KiB

terraform-git

Manage Gitea resources, teams, repos, and Woodpecker CI via Terraform.

GitHub (IUCLabs)

config/github.com/IUCLabs/ feeds modules/github_org via environments/github/iuclabs, authenticated as a GitHub App (kv/service/github/iuclabs/terraform). Org membership invites are manual.

team/<name>.yaml:

description: "IUCLabs maintainers"
privacy: closed
maintainers: [neoloc]
members: []

repository/<name>.yaml (every field, with defaults):

description: ""
private: true
default_branch: main
maintainers: []            # users or @team: maintain access, seed initial .github/CODEOWNERS
codeowners: []             # push access, for adding to CODEOWNERS later
merge_type: squash         # squash | merge | rebase
delete_branch_on_merge: true
branch_protection: !private # generated `branch-protection` ruleset on the default branch
tag_protection: !private    # generated `tag-protection` ruleset: refs/tags/v* undeletable, immutable
required_checks: []        # generated `required-checks` ruleset (strict)
rulesets: []               # custom rulesets from ruleset/

ruleset/<name>.yaml (custom extras; branch-protection, required-checks and tag-protection are reserved):

target: branch
enforcement: active
conditions:
  ref_name:
    include: ["refs/heads/release/*"]
    exclude: []
rules:
  deletion: true
  non_fast_forward: true

Private repositories cannot use branch_protection, tag_protection, required_checks or rulesets on the free plan; plan fails if they do.