Fix Flux image automation: use .Changed and prefer newest tag.

ImageUpdateAutomation failed on removed .Updated field; numerical order desc elects the latest run_number-sha tag.
This commit is contained in:
Vsevolod Sauta
2026-09-20 16:59:04 +03:00
parent e820b1ebd2
commit fab896429f
+2 -2
View File
@@ -28,7 +28,7 @@ spec:
extract: '$n' extract: '$n'
policy: policy:
numerical: numerical:
order: asc order: desc
--- ---
apiVersion: image.toolkit.fluxcd.io/v1 apiVersion: image.toolkit.fluxcd.io/v1
@@ -50,7 +50,7 @@ spec:
email: fluxcdbot@users.noreply.gitea.trinitysan.by email: fluxcdbot@users.noreply.gitea.trinitysan.by
name: fluxcdbot name: fluxcdbot
messageTemplate: | messageTemplate: |
chore(deploy): update cursor-devbox image to {{range .Updated.Images}}{{.}}{{end}} chore(deploy): update cursor-devbox image to {{range .Changed.Images}}{{.}}{{end}}
push: push:
branch: master branch: master
update: update: