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

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