mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 17:05:43 +03:00
The current version of Windows we're using ships with curl, so we don't need to download it as an artifact anymore. Remove the broken reference to this in the TaskAPI test for Windows. Ref: https://github.com/hashicorp/nomad-e2e/actions/runs/15708894856/job/44267973319
36 lines
683 B
HCL
36 lines
683 B
HCL
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
job "api-win" {
|
|
type = "batch"
|
|
|
|
constraint {
|
|
attribute = "${attr.kernel.name}"
|
|
value = "windows"
|
|
}
|
|
|
|
constraint {
|
|
attribute = "${attr.cpu.arch}"
|
|
value = "amd64"
|
|
}
|
|
|
|
group "api-win" {
|
|
|
|
task "win" {
|
|
driver = "raw_exec"
|
|
config {
|
|
command = "powershell"
|
|
args = ["curl.exe -H \"Authorization: Bearer $env:NOMAD_TOKEN\" --unix-socket $env:NOMAD_SECRETS_DIR/api.sock -v localhost:4646/v1/agent/health"]
|
|
}
|
|
identity {
|
|
env = true
|
|
}
|
|
resources {
|
|
cpu = 16
|
|
memory = 32
|
|
disk = 64
|
|
}
|
|
}
|
|
}
|
|
}
|