ImageUpdateAutomation failed on removed .Updated field; numerical order desc elects the latest run_number-sha tag.
59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
# Flux image automation for cursor-devbox (applied into flux-system on node1).
|
|
# GitRepository cursor-devbox is defined in infra glue (130-cursor-devbox.yaml).
|
|
# CI tags: latest, <sha>, <run_number>-<sha> — policy elects the last form.
|
|
|
|
---
|
|
apiVersion: image.toolkit.fluxcd.io/v1
|
|
kind: ImageRepository
|
|
metadata:
|
|
name: cursor-devbox
|
|
namespace: flux-system
|
|
spec:
|
|
image: dcr.trinitysan.by/infra/cursor-devbox
|
|
interval: 1m0s
|
|
secretRef:
|
|
name: dcr-registry-auth-ro
|
|
|
|
---
|
|
apiVersion: image.toolkit.fluxcd.io/v1
|
|
kind: ImagePolicy
|
|
metadata:
|
|
name: cursor-devbox
|
|
namespace: flux-system
|
|
spec:
|
|
imageRepositoryRef:
|
|
name: cursor-devbox
|
|
filterTags:
|
|
pattern: '^(?P<n>[0-9]+)-[0-9a-f]{40}$'
|
|
extract: '$n'
|
|
policy:
|
|
numerical:
|
|
order: desc
|
|
|
|
---
|
|
apiVersion: image.toolkit.fluxcd.io/v1
|
|
kind: ImageUpdateAutomation
|
|
metadata:
|
|
name: cursor-devbox
|
|
namespace: flux-system
|
|
spec:
|
|
interval: 5m0s
|
|
sourceRef:
|
|
kind: GitRepository
|
|
name: cursor-devbox
|
|
git:
|
|
checkout:
|
|
ref:
|
|
branch: master
|
|
commit:
|
|
author:
|
|
email: fluxcdbot@users.noreply.gitea.trinitysan.by
|
|
name: fluxcdbot
|
|
messageTemplate: |
|
|
chore(deploy): update cursor-devbox image to {{range .Changed.Images}}{{.}}{{end}}
|
|
push:
|
|
branch: master
|
|
update:
|
|
path: ./deploy
|
|
strategy: Setters
|