ci(gitea): allow dirty-node safe mode before hard phase6 gate

This commit is contained in:
Apple
2026-03-05 10:41:43 -08:00
parent 5b3a7e3998
commit fb268ec0e2
2 changed files with 8 additions and 3 deletions

View File

@@ -100,9 +100,13 @@ jobs:
"${SSH_USER}@${SSH_HOST}" \ "${SSH_USER}@${SSH_HOST}" \
"set -euo pipefail; \ "set -euo pipefail; \
cd /opt/microdao-daarion; \ cd /opt/microdao-daarion; \
git fetch origin; \ if [ -n \"\$(git status --porcelain)\" ]; then \
git checkout '${DEPLOY_REF:-main}'; \ echo 'WARN: dirty git tree on NODA1; skip checkout/pull and continue with gate'; \
git pull --ff-only origin '${DEPLOY_REF:-main}'; \ else \
git fetch origin; \
git checkout '${DEPLOY_REF:-main}'; \
git pull --ff-only origin '${DEPLOY_REF:-main}'; \
fi; \
if [ '${REDEPLOY_RUNTIME:-false}' = 'true' ]; then \ if [ '${REDEPLOY_RUNTIME:-false}' = 'true' ]; then \
docker compose -f docker-compose.node1.yml up -d --no-deps --build --force-recreate gateway experience-learner; \ docker compose -f docker-compose.node1.yml up -d --no-deps --build --force-recreate gateway experience-learner; \
fi; \ fi; \

View File

@@ -31,6 +31,7 @@ Required repo secrets:
- `redeploy_runtime=false` only syncs git on NODA1 and runs gate checks. - `redeploy_runtime=false` only syncs git on NODA1 and runs gate checks.
- `redeploy_runtime=true` recreates `gateway` and `experience-learner` containers. - `redeploy_runtime=true` recreates `gateway` and `experience-learner` containers.
- If NODA1 git tree is dirty, workflow skips checkout/pull and still enforces `phase6_gate` (safe mode for live nodes).
- Workflow uses SSH key validation and `IdentitiesOnly=yes` to avoid host key collisions. - Workflow uses SSH key validation and `IdentitiesOnly=yes` to avoid host key collisions.
## Expected PASS ## Expected PASS