From cbaa10468796d77a3a1f39fa3000b480294dde8e Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Thu, 24 Sep 2026 08:18:58 +0000 Subject: [PATCH] fix(flux): ImagePolicy numerical order asc for run_number tags desc elected the lowest run_number; document repo-level DCR secrets. --- README.md | 2 +- flux/image-automation.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 06e9e62..4cea4c8 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Gitea Actions (`.gitea/workflows/build-and-push.yaml`) on `master` (Dockerfile / | `:` | Immutable full 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 diff --git a/flux/image-automation.yaml b/flux/image-automation.yaml index e462dfa..eed7b1e 100644 --- a/flux/image-automation.yaml +++ b/flux/image-automation.yaml @@ -27,8 +27,9 @@ spec: pattern: '^(?P[0-9]+)-[0-9a-f]{40}$' extract: '$n' policy: + # asc = highest extracted number is latest (required for run_number-sha tags) numerical: - order: desc + order: asc --- apiVersion: image.toolkit.fluxcd.io/v1