Try fixing the unix socket support
All checks were successful
Build Docker Image / docker (push) Successful in 13s

This commit is contained in:
Lol3rrr
2026-10-02 19:50:29 +02:00
parent 9c6d1f3541
commit d61cc8627b

View File

@@ -2,7 +2,7 @@
set -euo pipefail set -euo pipefail
NOMAD_UNIX_ADDR="${NOMAD_UNIX_ADDR:-}" NOMAD_SECRETS_DIR="${NOMAD_SECRETS_DIR:-}"
NOMAD_TOKEN="${NOMAD_TOKEN:-}" NOMAD_TOKEN="${NOMAD_TOKEN:-}"
NOMAD_ADDR="${NOMAD_ADDR:-localhost}" NOMAD_ADDR="${NOMAD_ADDR:-localhost}"
@@ -21,8 +21,8 @@ CURL_ARGS=(
if [[ -n "${NOMAD_TOKEN}" ]]; then if [[ -n "${NOMAD_TOKEN}" ]]; then
CURL_ARGS+=(-H "Authorization: Bearer ${NOMAD_TOKEN}") CURL_ARGS+=(-H "Authorization: Bearer ${NOMAD_TOKEN}")
fi fi
if [[ -n "${NOMAD_UNIX_ADDR}" ]]; then if [[ -n "${NOMAD_SECRETS_DIR}" ]]; then
CURL_ARGS+=(--unix-socket "${NOMAD_UNIX_ADDR}") CURL_ARGS+=(--unix-socket "${NOMAD_SECRETS_DIR}/api.sock")
fi fi
if ! [[ "$TARGET_COUNT" =~ ^[+-]?[0-9]+$ ]]; then if ! [[ "$TARGET_COUNT" =~ ^[+-]?[0-9]+$ ]]; then