github.com/hernad/nomad@v1.6.112/e2e/artifact/input/artifact_darwin.nomad (about)

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