From 57ea55568487b13d261a823c34feb0a56376b213 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Thu, 24 Sep 2026 08:19:09 +0000 Subject: [PATCH] fix(flux): ImagePolicy numerical order asc for run_number tags Was stuck on 1-* while 5-* existed in DCR; align with onboarding howto. --- README.md | 2 +- flux/image-automation.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d04b97d..9713c0a 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Gitea Actions (`.gitea/workflows/build-and-push.yaml`) on `master` and `workflow | `:` | Immutable full SHA | | `:-` | Sortable; elected by Flux ImagePolicy | -Repo (or org) secrets: `DCR_USERNAME`, `DCR_PASSWORD` for DCR push (set on `infra/cursor-agent-api-proxy` if org secrets are not inherited). +Repo secrets (required): `DCR_USERNAME`, `DCR_PASSWORD`. Onboarding contract: infra `docs/how-to/onboard-repo-into-deployment-infra.md`. ## Local build / E2E diff --git a/flux/image-automation.yaml b/flux/image-automation.yaml index 0a5ae9a..f10626c 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