common/base_images.nomad.hcl

23 lines
535 B
HCL
Raw Normal View History

2023-09-10 14:08:05 +02:00
job "base_images" {
[[ template "common/job_start.tpl" . ]]
2023-09-16 22:48:30 +02:00
# Note : This is not a job to run
# Just a dummy job file for ctctl to be able to easily build base images
# So just set a constrain to be sure the job can't run
2023-09-10 14:08:05 +02:00
constraint {
attribute = "${attr.kernel.name}"
value = "nonexistant"
}
group "base_images" {
[[- range $k, $v := .docker.base_images ]]
task [[ $k | toJSON ]] {
driver = "docker"
config {
image = "[[ $.docker.repo ]][[ $v.image ]]"
}
}
[[- end ]]
}
}