Deploy v2 — release versioning + visible deploy jobs + manual rollback #105
Reference in New Issue
Block a user
Delete Branch "feature/release-versioning"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Deploy v2 — release versioning, visible deploy stages, and manual rollback. Follows the Stage 18 machinery (PR #103) per owner feedback.
Versioning (single semver, Go ldflags)
pkg/version.Version(defaultdev) set at link time via-ldflags "-X scrabble/pkg/version.Version=<tag>"from each service Dockerfile'sVERSIONbuild-arg.git describe --tags→ the binary version surfaces as theservice.versionOpenTelemetry resource attribute (Grafana/Tempo are version-aware) alongside the existing SPA About version.vX.Y.Zonmaster.Visible deploy stages
prod-deploy.yamlis now four sequential jobs — build → deploy-main → deploy-bot → verify — so the rollout shows as a chain in the Actions UI (the per-service rolling stays in the deploy-main log).Manual rollback
prod-rollback.yaml(separate manual workflow). Leavetarget_versionblank to roll back to the previous deployed version (the host now tracksDEPLOYED_TAG+PREVIOUS_TAG), or pick a release tag. Re-deploys an already-published image rolling + health-gated — image-only, no rebuild, no DB migration.Notes