Commit c08d962
kumar gopal
fix(flux): switch pve-nut image policy to numerical run-number ordering
The pve-nut ImagePolicy used `alphabetical desc` over bare 7-char git SHA
tags, which is structurally unsound: SHAs are random hex, so the
"latest" tag is whichever sorts highest by first hex char, not whichever
is newest. With tags [e6e2d9b, 9d5fdfe, 5cde4ad] in ghcr today, the
policy would pick e6e2d9b — the OLDEST commit (Feb 16) — as "latest"
and roll the deploy back, undoing today's SKIP_CAMERAS fix.
Switch the build to emit <run_number>-<short_sha> tags and the policy
to numerical-asc with extract '\$1', matching the pattern already used
by frigate-health-checker. Also add the workflow file to its own
trigger paths so workflow edits rebuild.
The current image tag in job-deploy.yaml (5cde4ad) doesn't match the
new pattern, so the ImagePolicy will hold off updates until the build
triggered by this commit publishes a matching tag.
Refs #1871 parent 9d5fdfe commit c08d962
2 files changed
Lines changed: 18 additions & 17 deletions
File tree
- .github/workflows
- gitops/clusters/homelab/flux-system
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
43 | 37 | | |
44 | 38 | | |
45 | 39 | | |
46 | 40 | | |
47 | 41 | | |
48 | 42 | | |
49 | | - | |
50 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
0 commit comments