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
25 lines
1,004 B
HCL
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
|
|
}
|
|
}
|