mega-ci / static-release-gates (push) Failing after 11s
release-tag / release-image (push) Successful in 6m46s
mega-ci / go-quality (services/control) (push) Successful in 10m7s
mega-ci / go-quality (platform/neuroforge) (push) Successful in 10m20s
mega-ci / go-quality (services/agent) (push) Successful in 11m1s
mega-ci / go-quality (services/knowledge) (push) Successful in 11m13s
mega-ci / docker-build (push) Has been skipped
15 lines
403 B
Bash
Executable File
15 lines
403 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
: "${KB_INTEGRATION_TOKEN:?set KB_INTEGRATION_TOKEN}"
|
|
KB_URL=${KB_URL:-http://127.0.0.1:${KNOWLEDGE_HOST_PORT:-8081}}
|
|
if [ "$#" -ne 1 ]; then
|
|
echo "usage: $0 proposal.json" >&2
|
|
exit 2
|
|
fi
|
|
curl --fail-with-body -sS \
|
|
-H "Authorization: Bearer $KB_INTEGRATION_TOKEN" \
|
|
-H 'Content-Type: application/json' \
|
|
--data-binary "@$1" \
|
|
"$KB_URL/api/integrations/staging"
|
|
printf '\n'
|