Commit df491d1
committed
feat: show release versions instead of image SHAs
- Add `version` field to `BotBody` to display GitHub release tags (e.g. `v0.1.226`) instead of Docker image SHAs
- Implement `release_index()` to fetch GitHub release metadata from GHCR repositories and map commit SHAs to version tags
- Implement `version_for_image()` to resolve running images to their release version by checking image tags, SHA lookups, and OCI labels
- Add `is_release_tag()` validator to identify semver release tags and distinguish them from channel tags
- Populate version field for bot list, detail, and action endpoints via new `with_version()` helper
- Update frontend `VersionRollback` component to display release versions as primary labels with image tags as fallback
- Add `imageLabel()` utility to show release version when available, otherwise shortened Docker ref
- Update `BotVersion` type to include `version` field for rollback UI
- Cache GitHub release metadata separately from commit metadata for efficient fleet page queries
- Add test coverage for release version resolution and OCI label fallbacks1 parent 24e9192 commit df491d1
11 files changed
Lines changed: 373 additions & 22 deletions
File tree
- src/panel
- http
- web/src
- components
- pages
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
130 | 133 | | |
131 | 134 | | |
132 | 135 | | |
| 136 | + | |
133 | 137 | | |
134 | 138 | | |
135 | 139 | | |
| |||
142 | 146 | | |
143 | 147 | | |
144 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
145 | 169 | | |
146 | 170 | | |
147 | 171 | | |
| |||
156 | 180 | | |
157 | 181 | | |
158 | 182 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
164 | 187 | | |
165 | 188 | | |
166 | 189 | | |
| |||
175 | 198 | | |
176 | 199 | | |
177 | 200 | | |
178 | | - | |
| 201 | + | |
179 | 202 | | |
180 | 203 | | |
181 | 204 | | |
| |||
194 | 217 | | |
195 | 218 | | |
196 | 219 | | |
197 | | - | |
| 220 | + | |
198 | 221 | | |
199 | 222 | | |
200 | 223 | | |
| |||
1680 | 1703 | | |
1681 | 1704 | | |
1682 | 1705 | | |
1683 | | - | |
| 1706 | + | |
1684 | 1707 | | |
1685 | 1708 | | |
1686 | 1709 | | |
| |||
1819 | 1842 | | |
1820 | 1843 | | |
1821 | 1844 | | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
1822 | 1870 | | |
1823 | 1871 | | |
1824 | 1872 | | |
| |||
0 commit comments