|
| 1 | +# Release guide |
| 2 | + |
| 3 | +This repository does **not** have tag-driven release automation yet. |
| 4 | + |
| 5 | +Until a dedicated release workflow exists, releases should stay explicit and manual so the tag, notes, and distribution story do not drift away from the repository reality. |
| 6 | + |
| 7 | +## Current release policy |
| 8 | + |
| 9 | +- CI is required on pull requests and on `main`. |
| 10 | +- Release automation is intentionally deferred. |
| 11 | +- A release should only be cut from `main` after the verification surface below passes. |
| 12 | +- GitHub Releases, tags, and any future container publication should follow one documented version for the repository. |
| 13 | + |
| 14 | +## What counts as release-ready |
| 15 | + |
| 16 | +Before creating a version tag, run the repository-owned verification commands from a clean checkout: |
| 17 | + |
| 18 | +```bash |
| 19 | +go test ./... -p 1 |
| 20 | +bash scripts/verify-docs-and-ci.sh |
| 21 | +bash scripts/verify-helm-chart.sh |
| 22 | +bash scripts/verify-compose-e2e.sh |
| 23 | +``` |
| 24 | + |
| 25 | +A release is not ready if any of these fail. |
| 26 | + |
| 27 | +## Versioning and tagging |
| 28 | + |
| 29 | +Until the project adopts a different rule, use semantic version tags: |
| 30 | + |
| 31 | +- `v0.1.0` |
| 32 | +- `v0.2.0` |
| 33 | +- `v1.0.0` |
| 34 | + |
| 35 | +Guidance: |
| 36 | + |
| 37 | +- bump **patch** for fixes and non-breaking packaging/doc corrections |
| 38 | +- bump **minor** for backward-compatible features |
| 39 | +- bump **major** for breaking API, config, or deployment changes |
| 40 | + |
| 41 | +Create annotated tags, not lightweight tags. |
| 42 | + |
| 43 | +## Manual release flow |
| 44 | + |
| 45 | +### 1. Confirm `main` is the exact release commit |
| 46 | + |
| 47 | +Make sure the release commit is already merged to `main` and that local `main` matches the remote. |
| 48 | + |
| 49 | +```bash |
| 50 | +git checkout main |
| 51 | +git pull --ff-only origin main |
| 52 | +``` |
| 53 | + |
| 54 | +### 2. Run the release verification suite |
| 55 | + |
| 56 | +```bash |
| 57 | +go test ./... -p 1 |
| 58 | +bash scripts/verify-docs-and-ci.sh |
| 59 | +bash scripts/verify-helm-chart.sh |
| 60 | +bash scripts/verify-compose-e2e.sh |
| 61 | +``` |
| 62 | + |
| 63 | +### 3. Create the annotated tag |
| 64 | + |
| 65 | +Replace `vX.Y.Z` with the version you are releasing. |
| 66 | + |
| 67 | +```bash |
| 68 | +git tag -a vX.Y.Z -m "vX.Y.Z" |
| 69 | +``` |
| 70 | + |
| 71 | +### 4. Push the tag |
| 72 | + |
| 73 | +```bash |
| 74 | +git push origin vX.Y.Z |
| 75 | +``` |
| 76 | + |
| 77 | +### 5. Create the GitHub Release entry |
| 78 | + |
| 79 | +Create a GitHub Release from the pushed tag and include: |
| 80 | + |
| 81 | +- a short summary of what changed |
| 82 | +- notable operator-facing changes |
| 83 | +- breaking changes or migration notes, if any |
| 84 | +- verification commands used for the release |
| 85 | + |
| 86 | +Until automation exists, this step is manual. |
| 87 | + |
| 88 | +## Release notes template |
| 89 | + |
| 90 | +Use this structure for the GitHub Release body: |
| 91 | + |
| 92 | +```markdown |
| 93 | +## Summary |
| 94 | +- <one-line release summary> |
| 95 | + |
| 96 | +## What changed |
| 97 | +- <change 1> |
| 98 | +- <change 2> |
| 99 | + |
| 100 | +## Operator impact |
| 101 | +- <deployment/config/runtime note> |
| 102 | + |
| 103 | +## Verification |
| 104 | +- `go test ./... -p 1` |
| 105 | +- `bash scripts/verify-docs-and-ci.sh` |
| 106 | +- `bash scripts/verify-helm-chart.sh` |
| 107 | +- `bash scripts/verify-compose-e2e.sh` |
| 108 | + |
| 109 | +## Breaking changes |
| 110 | +- None. |
| 111 | +``` |
| 112 | + |
| 113 | +## Future automation target |
| 114 | + |
| 115 | +When repository metadata, versioning expectations, and distribution targets are stable, replace the manual path above with a tag-triggered release workflow that: |
| 116 | + |
| 117 | +1. re-runs the release verification gates |
| 118 | +2. builds the release binary |
| 119 | +3. publishes the container image to GHCR, if that remains the chosen distribution path |
| 120 | +4. creates the GitHub Release with generated notes plus checksums/assets |
| 121 | + |
| 122 | +Until then, keep the release path simple, observable, and manual. |
0 commit comments