# Flux image automation for cursor-devbox (applied into flux-system on node5 since # the node1 devbox decommission 2026-11-03; see infra 137-cursor-devbox.yaml). # GitRepository cursor-devbox is defined in infra glue (137-cursor-devbox.yaml). # CI tags: latest, , - — policy elects the last form. # Setters scan the repo so deploy/node4-k3s and deploy/node5-k3s stay on the elected tag. --- 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[0-9]+)-[0-9a-f]{40}$' extract: '$n' policy: # asc = highest extracted number is latest (required for run_number-sha tags) numerical: order: asc --- 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 {{range .Changed.Changes}}{{print .OldValue}} -> {{println .NewValue}}{{end}} push: branch: master update: path: . strategy: Setters