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'
|
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user