11 lines
266 B
Bash
11 lines
266 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
: "${INTERNAL_JOB_TOKEN:?INTERNAL_JOB_TOKEN is required}"
|
|
: "${APP_INTERNAL_URL:=http://app:8000}"
|
|
|
|
curl --fail --silent --show-error \
|
|
-X POST \
|
|
-H "Authorization: Bearer ${INTERNAL_JOB_TOKEN}" \
|
|
"${APP_INTERNAL_URL}/internal/jobs/nightly"
|