added repository resource and moved repo
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-06-04 17:17:08 +02:00
parent 077ffca4ea
commit a79db16011
17 changed files with 519 additions and 16 deletions

4
examples/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
.terraform
.terraform.lock.hcl
terraform.tfstate
terraform.tfstate.backup

8
examples/main.tf Normal file
View File

@ -0,0 +1,8 @@
resource "gitea_repository" "test" {
username = "lerentis"
name = "test"
private = true
issue_labels = "Default"
license = "MIT"
gitignores = "Go"
}

13
examples/provider.tf Normal file
View File

@ -0,0 +1,13 @@
terraform {
required_providers {
gitea = {
source = "terraform.local/lerentis/gitea"
version = "0.1.0"
}
}
}
provider "gitea" {
base_url = var.gitea_url
token = var.gitea_token
}

7
examples/variables.tf Normal file
View File

@ -0,0 +1,7 @@
variable "gitea_url" {
default = "http://localhost:3000/"
}
variable "gitea_token" {
}