From 8c435ab09ef7282e98bcb18936ea208554388bff Mon Sep 17 00:00:00 2001 From: devops Date: Fri, 23 Oct 2026 18:31:23 +0000 Subject: [PATCH] Restore Stage availability with explicit runtime provisioning rollback --- scripts/ci-host-deploy.sh | 2 +- scripts/deploy.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ci-host-deploy.sh b/scripts/ci-host-deploy.sh index 8487ba1a..c9c62d38 100644 --- a/scripts/ci-host-deploy.sh +++ b/scripts/ci-host-deploy.sh @@ -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=true DEPLOY_SHA="$1" bash "$script" develop +GITHUB_ACTIONS=true STAGE_PROVISION_ENABLED=false DEPLOY_SHA="$1" bash "$script" develop HOST diff --git a/scripts/deploy.sh b/scripts/deploy.sh index a0547b2d..3720f1bc 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -33,7 +33,7 @@ git checkout --detach "$DEPLOY_SHA" source scripts/rollout-stage.sh if [ "${STAGE_PROVISION_ENABLED:-false}" = true ]; then stage_runtime_provision -elif [ -e /opt/services/canina/stage-runtime ]; then +elif [ -e /opt/services/canina/stage-runtime ] && [ "${STAGE_PROVISION_ENABLED:-}" != false ]; then echo 'ERROR: existing runtime requires explicit Stage CI opt-in on every deploy' >&2 exit 2 fi