camply-searches/job.nomad.hcl

46 lines
796 B
HCL
Raw Normal View History

2025-06-27 13:10:53 +00:00
variable "version" {
type = string
}
variable "runner_name" {
description = "The name of the github runner ($GITHUB_RUNNER)"
type = string
}
2025-07-26 22:00:13 +00:00
job "alice_lake_2025" {
2025-06-27 13:10:53 +00:00
datacenters = ["dc1"]
namespace = "default"
group "task" {
count = 1
task "camply" {
driver = "docker"
artifact {
source = "http://${var.runner_name}:8080/camply-${var.version}.tar"
options {
archive = false
}
}
config {
load = "camply-${var.version}.tar"
image = "camply:${var.version}"
}
template {
data = <<EOF
2025-07-26 22:43:38 +00:00
NTFY_TOPIC=adriano-camply
2025-06-27 13:10:53 +00:00
EOF
destination = "local/env"
env = true
}
resources {
cpu = 128
memory = 128
}
}
}
}