fix: [nomad-prep] P12 — dispatcher commits result.json via git push, not bind-mount (#803) #818

Merged
dev-bot merged 1 commit from fix/issue-803 into main 2026-04-16 01:05:57 +00:00

1 commit

Author SHA1 Message Date
Claude
519742e5e7 fix: [nomad-prep] P12 — dispatcher commits result.json via git push, not bind-mount (#803)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
Replace write_result's direct filesystem write with commit_result_via_git,
which clones the ops repo into a scratch directory, writes the result file,
commits as vault-bot, and pushes. This removes the requirement for a shared
bind-mount between the dispatcher container and the host ops-repo clone.

- Idempotent: skips if result.json already exists upstream
- Retry loop: handles push conflicts with rebase-and-push (up to 3 attempts)
- Scratch dir: cleaned up via RETURN trap regardless of outcome
- Works identically under docker and future nomad backends
2026-04-16 00:54:33 +00:00