quarkshologridledger/infra/forgejo.tf
Pedro Faria da Costa dcead05492
Some checks failed
CI / tongo-core (push) Failing after 2m50s
CI / web-terminal (push) Successful in 59s
Deploy / build-and-push (push) Failing after 4s
Deploy / deploy (push) Has been skipped
Infrastructure / plan (push) Failing after 1s
Infrastructure / apply (push) Has been skipped
update infra workflow
2026-07-06 00:12:23 +01:00

26 lines
1 KiB
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
project = "quarkshologridledger"
}
}