added repository resource and moved repo
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
4
examples/.gitignore
vendored
Normal file
4
examples/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
.terraform
|
||||
.terraform.lock.hcl
|
||||
terraform.tfstate
|
||||
terraform.tfstate.backup
|
8
examples/main.tf
Normal file
8
examples/main.tf
Normal 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
13
examples/provider.tf
Normal 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
7
examples/variables.tf
Normal file
@ -0,0 +1,7 @@
|
||||
variable "gitea_url" {
|
||||
default = "http://localhost:3000/"
|
||||
}
|
||||
|
||||
variable "gitea_token" {
|
||||
|
||||
}
|
Reference in New Issue
Block a user