quarkshologridledger/infra/forgejo.tf
Pedro Faria da Costa b6bc68de23
Some checks are pending
CI / tongo-core (push) Waiting to run
CI / web-terminal (push) Waiting to run
Deploy / build-and-push (push) Waiting to run
Deploy / deploy (push) Blocked by required conditions
Infrastructure / plan (push) Waiting to run
Infrastructure / apply (push) Blocked by required conditions
add infra
2026-07-05 23:44:51 +01:00

25 lines
1,004 B
HCL

# ──────────────────────────────────────────────────────────────
# Quark's Holo-Grid Ledger — Forgejo server (git forge + CI)
# ──────────────────────────────────────────────────────────────
resource "hcloud_server" "forgejo" {
count = terraform.workspace == "tooling" ? 1 : 0
name = "hologrid-forgejo"
server_type = var.forgejo_server_type
location = var.location
image = "ubuntu-24.04"
ssh_keys = [hcloud_ssh_key.deploy.id]
firewall_ids = [hcloud_firewall.forgejo[0].id]
user_data = templatefile("${path.module}/cloud-init/forgejo.yml", {
ssh_public_key = var.ssh_public_key
forgejo_domain = var.forgejo_domain
})
labels = {
role = "forgejo"
environment = terraform.workspace
}
}