Files
nomad-nummer5/apps/gitea/live-runners.hcl

55 lines
1.1 KiB
HCL

job "gitea-runner" {
datacenters = [
"nummer5",
]
type = "service"
group "apps" {
count = 1
constraint {
operator = "distinct_hosts"
value = "true"
}
volume "gitea-runner-data" {
type = "csi"
source = "gitea-runner-data"
read_only = false
access_mode = "multi-node-multi-writer"
attachment_mode = "file-system"
}
restart {
attempts = 5
delay = "60s"
}
task "gitea-runner" {
driver = "podman"
volume_mount {
volume = "gitea-runner-data"
destination = "/data"
read_only = false
}
config {
image = "docker.io/gitea/act_runner:nightly"
volumes = [
"/var/run/podman/podman.sock:/var/run/docker.sock",
"/etc/containers:/etc/containers"
]
}
env {
GITEA_INSTANCE_URL = "http://gitea.service.nr5"
GITEA_RUNNER_REGISTRATION_TOKEN = "djwiQFUh40E9NebcwKHEZeaCdJ3IB1d6ahUWzlaL"
}
resources {
cpu = 600
memory = 512
}
}
}
}