Commit cd9577b
feat: Add automated version sync for local development (#448)
## Summary
Implements automated version synchronization for local development to
prevent version drift between git tags and deployment manifests.
## Changes
- **Makefile**: Add `local-sync-version` target to automatically sync
version from git
- **local-up workflow**: Integrated version sync to run before deploying
services
- **local-status enhancement**: Show Git/Manifest/Running version
alignment with drift warnings
- **Frontend manifest**: Updated to current version (auto-synced from
git describe)
## Problem Solved
Previously, the web UI displayed version `v0.0.3` (hardcoded in
manifest) instead of the current release `v0.0.12`. This required manual
updates every release and caused version drift.
## Solution
Automatic version injection using `git describe --tags --always`,
matching the pattern used in CI/CD workflows:
- **Production**: Uses release tags
- **Staging**: Uses git SHA
- **Local Dev**: Now uses git describe (latest tag + commits ahead)
## Workflow
Every `make local-up` now:
1. Syncs version from git → manifest
2. Applies updated manifest
3. Deploys with current version
## Verification
After deployment:
- API returns correct version: `{"version":"v0.0.12-22-g5553056"}`
- `make local-status` shows aligned versions with no warnings
## Benefits
- ✅ Single source of truth (git tags)
- ✅ No manual version updates needed
- ✅ Consistent across all environments (local/staging/prod)
- ✅ Prevents version drift permanently
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 5553056 commit cd9577b
File tree
2 files changed
+23
-2
lines changed- components/manifests/minikube
2 files changed
+23
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
195 | 216 | | |
196 | 217 | | |
197 | 218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
0 commit comments