mirror of
https://git.uploadfilter24.eu/lerentis/terraform-provider-gitea.git
synced 2024-11-05 10:28:12 +00:00
25 lines
No EOL
458 B
HCL
25 lines
No EOL
458 B
HCL
terraform {
|
|
required_providers {
|
|
tls = {
|
|
source = "hashicorp/tls"
|
|
version = "4.0.4"
|
|
}
|
|
}
|
|
}
|
|
|
|
resource "tls_private_key" "example" {
|
|
type = "RSA"
|
|
rsa_bits = 4096
|
|
}
|
|
|
|
resource "gitea_repository" "example" {
|
|
name = "example"
|
|
private = true
|
|
}
|
|
|
|
resource "gitea_repository_key" "example" {
|
|
repository = gitea_repository.example.id
|
|
title = "Example Deploy Key"
|
|
read_only = true
|
|
key = tls_private_key.example.public_key_openssh
|
|
} |