Restore Stage availability with explicit runtime provisioning rollback
Deploy Canina / deploy (push) Successful in 1m32s
Deploy Canina / deploy (push) Successful in 1m32s
This commit is contained in:
1 parent
4388a5c2e6
commit
8c435ab09e
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user