github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/jobspec/test-fixtures/artifacts.hcl (about)

     1  job "binstore-storagelocker" {
     2    group "binsl" {
     3      task "binstore" {
     4        driver = "docker"
     5  
     6        artifact {
     7          source      = "http://foo.com/bar"
     8          destination = ""
     9  
    10          options {
    11            foo = "bar"
    12          }
    13        }
    14  
    15        artifact {
    16          source = "http://foo.com/baz"
    17        }
    18  
    19        artifact {
    20          source      = "http://foo.com/bam"
    21          destination = "var/foo"
    22        }
    23  
    24        artifact {
    25          source = "https://example.com/file.txt"
    26  
    27          headers {
    28            User-Agent    = "nomad"
    29            X-Nomad-Alloc = "alloc"
    30          }
    31        }
    32      }
    33    }
    34  }