Try fixing the unix socket support
All checks were successful
Build Docker Image / docker (push) Successful in 13s
All checks were successful
Build Docker Image / docker (push) Successful in 13s
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user