github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/e2e/artifact/input/artifact_linux.nomad (about) 1 job "linux" { 2 datacenters = ["dc1"] 3 type = "batch" 4 5 constraint { 6 attribute = "${attr.kernel.name}" 7 value = "linux" 8 } 9 10 group "rawexec" { 11 12 task "rawexec_file_default" { 13 artifact { 14 source = "https://raw.githubusercontent.com/hashicorp/go-set/main/go.mod" 15 } 16 driver = "raw_exec" 17 config { 18 command = "cat" 19 args = ["local/go.mod"] 20 } 21 resources { 22 cpu = 16 23 memory = 32 24 disk = 64 25 } 26 } 27 28 task "rawexec_file_custom" { 29 artifact { 30 source = "https://raw.githubusercontent.com/hashicorp/go-set/main/go.mod" 31 destination = "local/my/path" 32 } 33 driver = "raw_exec" 34 config { 35 command = "cat" 36 args = ["local/my/path/go.mod"] 37 } 38 resources { 39 cpu = 16 40 memory = 32 41 disk = 64 42 } 43 } 44 45 task "rawexec_zip_default" { 46 artifact { 47 source = "https://github.com/hashicorp/go-set/archive/refs/heads/main.zip" 48 } 49 driver = "raw_exec" 50 config { 51 command = "cat" 52 args = ["local/go-set-main/go.mod"] 53 } 54 resources { 55 cpu = 16 56 memory = 32 57 disk = 64 58 } 59 } 60 61 task "rawexec_zip_custom" { 62 artifact { 63 source = "https://github.com/hashicorp/go-set/archive/refs/heads/main.zip" 64 destination = "local/my/zip" 65 } 66 driver = "raw_exec" 67 config { 68 command = "cat" 69 args = ["local/my/zip/go-set-main/go.mod"] 70 } 71 resources { 72 cpu = 16 73 memory = 32 74 disk = 64 75 } 76 } 77 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 = "cat" 86 args = ["local/repository/go.mod"] 87 } 88 resources { 89 cpu = 16 90 memory = 32 91 disk = 64 92 } 93 } 94 } 95 96 group "exec" { 97 task "exec_file_default" { 98 artifact { 99 source = "https://raw.githubusercontent.com/hashicorp/go-set/main/go.mod" 100 } 101 driver = "exec" 102 config { 103 command = "cat" 104 args = ["local/go.mod"] 105 } 106 resources { 107 cpu = 16 108 memory = 32 109 disk = 256 110 } 111 } 112 113 task "exec_file_custom" { 114 artifact { 115 source = "https://raw.githubusercontent.com/hashicorp/go-set/main/go.mod" 116 destination = "local/my/path" 117 } 118 driver = "exec" 119 config { 120 command = "cat" 121 args = ["local/my/path/go.mod"] 122 } 123 resources { 124 cpu = 16 125 memory = 32 126 disk = 256 127 } 128 } 129 130 task "exec_zip_default" { 131 artifact { 132 source = "https://github.com/hashicorp/go-set/archive/refs/heads/main.zip" 133 } 134 driver = "exec" 135 config { 136 command = "cat" 137 args = ["local/go-set-main/go.mod"] 138 } 139 resources { 140 cpu = 16 141 memory = 32 142 disk = 256 143 } 144 } 145 146 task "exec_zip_custom" { 147 artifact { 148 source = "https://github.com/hashicorp/go-set/archive/refs/heads/main.zip" 149 destination = "local/my/zip" 150 } 151 driver = "exec" 152 config { 153 command = "cat" 154 args = ["local/my/zip/go-set-main/go.mod"] 155 } 156 resources { 157 cpu = 16 158 memory = 32 159 disk = 256 160 } 161 } 162 163 task "exec_git_custom" { 164 artifact { 165 source = "git::https://github.com/hashicorp/go-set" 166 destination = "local/repository" 167 } 168 driver = "exec" 169 config { 170 command = "cat" 171 args = ["local/repository/go.mod"] 172 } 173 resources { 174 cpu = 16 175 memory = 32 176 disk = 256 177 } 178 } 179 } 180 181 group "docker" { 182 task "docker_file_default" { 183 artifact { 184 source = "https://raw.githubusercontent.com/hashicorp/go-set/main/go.mod" 185 } 186 driver = "docker" 187 config { 188 image = "bash:5" 189 args = ["cat", "local/go.mod"] 190 } 191 resources { 192 cpu = 16 193 memory = 32 194 disk = 64 195 } 196 } 197 198 task "docker_file_custom" { 199 artifact { 200 source = "https://raw.githubusercontent.com/hashicorp/go-set/main/go.mod" 201 destination = "local/my/path" 202 } 203 driver = "docker" 204 config { 205 image = "bash:5" 206 args = ["cat", "local/my/path/go.mod"] 207 } 208 resources { 209 cpu = 16 210 memory = 32 211 disk = 64 212 } 213 } 214 215 task "docker_zip_default" { 216 artifact { 217 source = "https://github.com/hashicorp/go-set/archive/refs/heads/main.zip" 218 } 219 driver = "docker" 220 config { 221 image = "bash:5" 222 args = ["cat", "local/go-set-main/go.mod"] 223 } 224 resources { 225 cpu = 16 226 memory = 32 227 disk = 64 228 } 229 } 230 231 task "docker_zip_custom" { 232 artifact { 233 source = "https://github.com/hashicorp/go-set/archive/refs/heads/main.zip" 234 destination = "local/my/zip" 235 } 236 driver = "docker" 237 config { 238 image = "bash:5" 239 args = ["cat", "local/my/zip/go-set-main/go.mod"] 240 } 241 resources { 242 cpu = 16 243 memory = 32 244 disk = 64 245 } 246 } 247 248 task "docker_git_custom" { 249 artifact { 250 source = "git::https://github.com/hashicorp/go-set" 251 destination = "local/repository" 252 } 253 driver = "docker" 254 config { 255 image = "bash:5" 256 args = ["cat", "local/repository/go.mod"] 257 } 258 resources { 259 cpu = 16 260 memory = 32 261 disk = 64 262 } 263 } 264 } 265 }