terraform-provider-gitea/examples/resources/gitea_team/resource.tf
Tobias Trabelsi 680e2dcba2
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
#3 teams can now have members
2022-06-26 00:35:28 +02:00

22 lines
502 B
HCL

resource "gitea_org" "test_org" {
name = "test-org"
}
resource "gitea_user" "test" {
username = "test"
login_name = "test"
password = "Geheim1!"
email = "test@user.dev"
must_change_password = false
admin = true
}
resource "gitea_team" "test_team" {
name = "Devs"
organisation = gitea_org.test_org.name
description = "Devs of Test Org"
permission = "write"
members = [gitea_user.test.username]
}