fix(flux): ImagePolicy numerical order asc for run_number tags
Was stuck on 1-* while 5-* existed in DCR; align with onboarding howto.
This commit is contained in:
@@ -26,7 +26,7 @@ Gitea Actions (`.gitea/workflows/build-and-push.yaml`) on `master` and `workflow
|
|||||||
| `:<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 |
|
||||||
|
|
||||||
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
|
## Local build / E2E
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user