Sprint 2.5 — D1: BKG Save Step — Deploy Workflow
Branch: feat/sprint-2.5-d1-bkg-deploy
Base: main
Depends on: D4 ✅ (feat/sprint-2.5-d4-schema-validation merged via PR #30)
Task
Add a Best-Known-Good (BKG) config save step to the deploy workflow.
Files to create/modify in Piboonsak/openclaw_github:
-
scripts/bkg-save.sh (NEW)
- Copy current running openclaw config from VPS to
/data/openclaw-config-archive/
- Name format:
bkg-{YYYYMMDD-HHmmss}-{short-sha}.json
- Update symlink:
bkg-latest.json → newest healthy config
- Rotate: keep max 10 entries, auto-delete oldest
- Make executable:
chmod +x scripts/bkg-save.sh
-
.github/workflows/deploy-openclaw-github-private-secrets.yml (MODIFY)
- Add BKG save step AFTER health check PASS step
- Only run if health check succeeded (use
if: success())
- Call
bkg-save.sh via SSH on VPS
Acceptance Criteria
Commit Message
feat(deploy): add BKG save step to deploy workflow (#202)
Reference
- Master issue: Piboonsak/Openclaw#202
- D4 (validate-config.sh) already in main — use as reference for script pattern
- VPS config path:
/data/.openclaw/openclaw.json (verify from existing workflow)
Labels
Sprint 2.5 — D1: BKG Save Step — Deploy Workflow
Branch: feat/sprint-2.5-d1-bkg-deploy
Base: main
Depends on: D4 ✅ (feat/sprint-2.5-d4-schema-validation merged via PR #30)
Task
Add a Best-Known-Good (BKG) config save step to the deploy workflow.
Files to create/modify in
Piboonsak/openclaw_github:scripts/bkg-save.sh(NEW)/data/openclaw-config-archive/bkg-{YYYYMMDD-HHmmss}-{short-sha}.jsonbkg-latest.json→ newest healthy configchmod +x scripts/bkg-save.sh.github/workflows/deploy-openclaw-github-private-secrets.yml(MODIFY)if: success())bkg-save.shvia SSH on VPSAcceptance Criteria
/data/openclaw-config-archive/bkg-{timestamp}-{sha}.jsonbkg-latest.jsonsymlink updated to most recent healthy configCommit Message
Reference
/data/.openclaw/openclaw.json(verify from existing workflow)Labels