adriano.fyi/job.nomad.hcl
Adriano Caloiaro c6e1381beb
All checks were successful
Build and Deploy / build (push) Successful in 35s
Build and Deploy / deploy (push) Successful in 54s
feat: move to forgejo actions
2026-07-19 11:52:47 -06:00

40 lines
647 B
HCL

variable "version" {
type = string
}
job "adriano-fyi" {
datacenters = ["dc1"]
namespace = "default"
group "task" {
count = 3
network {
port "http" {
to = 3000
host_network = "tailnet"
}
}
task "webserver" {
driver = "docker"
config {
image = "code.adriano.fyi/me/adriano.fyi:${var.version}"
ports = ["http"]
}
resources {
cpu = 128
memory = 64
}
service {
port = "http"
name = "adriano-fyi"
provider = "nomad"
address_mode = "host"
}
}
}
}