fix(flux): ImagePolicy numerical order asc for run_number tags

desc elected the lowest run_number; document repo-level DCR secrets.
This commit is contained in:
Ubuntu
2026-09-24 08:18:58 +00:00
parent cd96d4050d
commit cbaa104687
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ Gitea Actions (`.gitea/workflows/build-and-push.yaml`) on `master` (Dockerfile /
| `:<git-sha>` | Immutable full SHA | | `:<git-sha>` | Immutable full SHA |
| `:<run_number>-<git-sha>` | Sortable; elected by Flux ImagePolicy | | `:<run_number>-<git-sha>` | Sortable; elected by Flux ImagePolicy |
Org secrets: `DCR_USERNAME`, `DCR_PASSWORD` (infra org). Repo secrets (required): `DCR_USERNAME`, `DCR_PASSWORD`. Onboarding contract: infra `docs/how-to/onboard-repo-into-deployment-infra.md`.
## Local build ## Local build
+2 -1
View File
@@ -27,8 +27,9 @@ spec:
pattern: '^(?P<n>[0-9]+)-[0-9a-f]{40}$' pattern: '^(?P<n>[0-9]+)-[0-9a-f]{40}$'
extract: '$n' extract: '$n'
policy: policy:
# asc = highest extracted number is latest (required for run_number-sha tags)
numerical: numerical:
order: desc order: asc
--- ---
apiVersion: image.toolkit.fluxcd.io/v1 apiVersion: image.toolkit.fluxcd.io/v1