Match reviewed Stage API prefix and readable public runtime entrypoint
Deploy Canina / deploy (push) Failing after 1m18s

This commit is contained in:
devops committed 2026-10-23 19:07:18 +00:00
1 parent 8c435ab09e
commit 93d43fb261
3 files changed
+3 -2

No files matched your search

@@ -42,7 +42,7 @@ function validArtifactBase(value: string): boolean {
/^[a-z0-9](?:[a-z0-9.-]*[a-z0-9])?$/.test(u.hostname) &&
u.hostname.includes(".") && !/^[0-9.]+$/.test(u.hostname) &&
!/(^|\.)(localhost|local|internal|lan|home)$/.test(u.hostname) &&
u.pathname === "/internal/prepare-worker/artifacts" &&
["/internal/prepare-worker/artifacts", "/api/internal/prepare-worker/artifacts"].includes(u.pathname) &&
value === u.origin + u.pathname;
} catch { return false; }
}
+1 -1
View File
@@ -41,5 +41,5 @@ script=$(mktemp)
trap 'rm -f "$script"' EXIT
wget --no-proxy -qO "$script" "https://git.parsaaghayi.ir/parsa/canina/raw/commit/${1}/scripts/deploy.sh"
# CI marker exists only across this authenticated, fixed Stage boundary.
GITHUB_ACTIONS=true STAGE_PROVISION_ENABLED=false DEPLOY_SHA="$1" bash "$script" develop
GITHUB_ACTIONS=true STAGE_PROVISION_ENABLED=true DEPLOY_SHA="$1" bash "$script" develop
HOST
+1
View File
@@ -75,6 +75,7 @@ PY
}
stage_runtime_render() {
chmod 644 "$TARGET_DIR/infra/hermes-runtime/serve.py"
export STAGE_RUNTIME_SERVE_FILE="$TARGET_DIR/infra/hermes-runtime/serve.py"
export STAGE_RUNTIME_SNAPSHOT
STAGE_RUNTIME_SNAPSHOT=$(python3 -c 'import json;print(json.load(open(".stage-runtime.json"))["snapshot"])')