7da3fd050b
* jobspec: allow artifact headers in HCLv1 Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
35 lines
588 B
HCL
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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|