#!/usr/bin/env bash # Run on ces-control only after both services have deployed this revision. set -Eeuo pipefail ROOT=$(git rev-parse --show-toplevel) IMAGE=$(docker inspect --format '{{.Config.Image}}' prompt-waterfall-wiki-1) [[ "$IMAGE" =~ ^waterfall-wiki:[0-9a-f]{40}$ ]] || exit 1 OUT="$ROOT/artifacts/studio-guide" mkdir -p "$OUT" chown 1000:1000 "$OUT" docker run --rm --volumes-from prompt-waterfall-wiki-1:ro \ --mount "type=bind,src=$ROOT,dst=/delivery,readonly" \ --mount "type=bind,src=$OUT,dst=/tmp/studio-library" \ -e AUTH_CONFIG_FILE=/auth/config.json -e AUTH_CHECK_BASE_URL=http://8.211.154.134:18131 \ --entrypoint node "waterfall-wiki-tests:${IMAGE#waterfall-wiki:}" dist/auth-cli.cjs run /delivery/scripts/publish-studio-library.mjs