github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/e2e/artifact/input/artifact_darwin.nomad (about)

     1  # note: this job is not run regularly in e2e,
     2  # where we have no macOS runner.
     3  
     4  job "darwin" {
     5    datacenters = ["dc1"]
     6    type        = "batch"
     7  
     8    constraint {
     9      attribute = "${attr.kernel.name}"
    10      value     = "darwin"
    11    }
    12  
    13    group "rawexec" {
    14      task "rawexec" {
    15        artifact {
    16          source = "https://raw.githubusercontent.com/hashicorp/go-set/main/go.mod"
    17        }
    18        driver = "raw_exec"
    19        config {
    20          command = "cat"
    21          args    = ["local/go.mod"]
    22        }
    23        resources {
    24          cpu    = 16
    25          memory = 32
    26          disk   = 64
    27        }
    28      }
    29  
    30      task "rawexec_file_custom" {
    31        artifact {
    32          source      = "https://raw.githubusercontent.com/hashicorp/go-set/main/go.mod"
    33          destination = "local/my/path"
    34        }
    35        driver = "raw_exec"
    36        config {
    37          command = "cat"
    38          args    = ["local/my/path/go.mod"]
    39        }
    40        resources {
    41          cpu    = 16
    42          memory = 32
    43          disk   = 64
    44        }
    45      }
    46  
    47      task "rawexec_zip_default" {
    48        artifact {
    49          source = "https://github.com/hashicorp/go-set/archive/refs/heads/main.zip"
    50        }
    51        driver = "raw_exec"
    52        config {
    53          command = "cat"
    54          args    = ["local/go-set-main/go.mod"]
    55        }
    56        resources {
    57          cpu    = 16
    58          memory = 32
    59          disk   = 64
    60        }
    61      }
    62  
    63      task "rawexec_zip_custom" {
    64        artifact {
    65          source      = "https://github.com/hashicorp/go-set/archive/refs/heads/main.zip"
    66          destination = "local/my/zip"
    67        }
    68        driver = "raw_exec"
    69        config {
    70          command = "cat"
    71          args    = ["local/my/zip/go-set-main/go.mod"]
    72        }
    73        resources {
    74          cpu    = 16
    75          memory = 32
    76          disk   = 64
    77        }
    78      }
    79  
    80      task "rawexec_git_custom" {
    81        artifact {
    82          source      = "git::https://github.com/hashicorp/go-set"
    83          destination = "local/repository"
    84        }
    85        driver = "raw_exec"
    86        config {
    87          command = "cat"
    88          args    = ["local/repository/go.mod"]
    89        }
    90        resources {
    91          cpu    = 16
    92          memory = 32
    93          disk   = 64
    94        }
    95      }
    96    }
    97  }