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:
@@ -28,7 +28,7 @@ spec:
|
||||
extract: '$n'
|
||||
policy:
|
||||
numerical:
|
||||
order: asc
|
||||
order: desc
|
||||
|
||||
---
|
||||
apiVersion: image.toolkit.fluxcd.io/v1
|
||||
@@ -50,7 +50,7 @@ spec:
|
||||
email: fluxcdbot@users.noreply.gitea.trinitysan.by
|
||||
name: fluxcdbot
|
||||
messageTemplate: |
|
||||
chore(deploy): update cursor-devbox image to {{range .Updated.Images}}{{.}}{{end}}
|
||||
chore(deploy): update cursor-devbox image to {{range .Changed.Images}}{{.}}{{end}}
|
||||
push:
|
||||
branch: master
|
||||
update:
|
||||
|
||||
Reference in New Issue
Block a user