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:
@@ -25,7 +25,7 @@ Gitea Actions (`.gitea/workflows/build-and-push.yaml`) on `master` (Dockerfile /
|
||||
| `:<git-sha>` | Immutable full SHA |
|
||||
| `:<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
|
||||
|
||||
|
||||
@@ -27,8 +27,9 @@ spec:
|
||||
pattern: '^(?P<n>[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
|
||||
|
||||
Reference in New Issue
Block a user