ORCH-3 (S-3) + M-5: safe deploy rollback + infra hardcode cleanup #20

Merged
admin merged 2 commits from feature/ORCH-3-deploy-rollback into main 2026-06-03 09:39:38 +03:00
Owner

S-3 — safe rollback

Remove dangerous git checkout $LAST_TAG from deployer.md (detached HEAD in shared repo, breaks next pull, does NOT roll back prod). Rollback now via deploy hook: ssh ... bash ${HOOK} --rollback. Narrowed deployer tools to Bash (git, curl).

Hook (NOT in repo, /home/slin/bin/enduro-deploy-hook.sh): candidate staged as .new + backup .bak-*. Saves running image to .deploy-prev-image before restart; --rollback retags prev image to enduro-trails-app:latest and restarts via docker compose up -d --no-build app, or logs skipped+exit1 if nothing. Happy-path + set -e intact. bash -n OK, prod dry-run (read-only/throwaway tag) verified. Apply to prod = Stream/Slava step.

M-5 — infra hardcode

architect.md host -> ${DEPLOY_SSH_HOST:-mva154}; tester.md -> ${REPO_DIR:-...}, ${UI_TEST_RUNNER:-...}. Defaults preserve behavior.

Do NOT merge — Stream decides merge + prod hook apply.

## S-3 — safe rollback Remove dangerous git checkout $LAST_TAG from deployer.md (detached HEAD in shared repo, breaks next pull, does NOT roll back prod). Rollback now via deploy hook: ssh ... bash ${HOOK} --rollback. Narrowed deployer tools to Bash (git, curl). Hook (NOT in repo, /home/slin/bin/enduro-deploy-hook.sh): candidate staged as .new + backup .bak-*. Saves running image to .deploy-prev-image before restart; --rollback retags prev image to enduro-trails-app:latest and restarts via docker compose up -d --no-build app, or logs skipped+exit1 if nothing. Happy-path + set -e intact. bash -n OK, prod dry-run (read-only/throwaway tag) verified. Apply to prod = Stream/Slava step. ## M-5 — infra hardcode architect.md host -> ${DEPLOY_SSH_HOST:-mva154}; tester.md -> ${REPO_DIR:-...}, ${UI_TEST_RUNNER:-...}. Defaults preserve behavior. Do NOT merge — Stream decides merge + prod hook apply.
admin added 2 commits 2026-06-03 09:37:44 +03:00
Remove dangerous git checkout $LAST_TAG from deployer prompt: it left the shared working copy in detached HEAD (breaking the next git pull) and did not roll back prod at all. Rollback now goes through the deploy hook (ssh ... bash ${HOOK} --rollback), which restores the app container to the previously running image. Narrow tools to Bash (git, curl) since the deployer no longer invokes docker directly.
refactor(agents): parametrize infra hardcode (M-5)
Some checks failed
CI / lint (push) Failing after 5s
CI / test (push) Failing after 5s
CI / build (push) Has been skipped
CI / lint (pull_request) Failing after 4s
CI / test (pull_request) Failing after 5s
CI / build (pull_request) Has been skipped
39b15bec65
architect.md: server host 82.22.50.71/mva154 -> ${DEPLOY_SSH_HOST:-mva154}. tester.md: repo path -> ${REPO_DIR:-...}, ui-test runner -> ${UI_TEST_RUNNER:-...}. Defaults preserve current behavior; prompts become portable.
admin merged commit d379e48c08 into main 2026-06-03 09:39:38 +03:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/enduro-trails#20