open-nomad/jobspec/test-fixtures/artifacts.hcl
Jim Razmus II 7da3fd050b
jobspec: allow artifact headers in HCLv1 (#14637)
* jobspec: allow artifact headers in HCLv1

Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
2022-09-27 12:18:49 -04:00

35 lines
588 B
HCL

job "binstore-storagelocker" {
group "binsl" {
task "binstore" {
driver = "docker"
artifact {
source = "http://foo.com/bar"
destination = ""
options {
foo = "bar"
}
}
artifact {
source = "http://foo.com/baz"
}
artifact {
source = "http://foo.com/bam"
destination = "var/foo"
}
artifact {
source = "https://example.com/file.txt"
headers {
User-Agent = "nomad"
X-Nomad-Alloc = "alloc"
}
}
}
}
}