Initial cursor-devbox: image, deploy manifests, and Flux SHA automation.
build-and-push / build (push) Failing after 1m42s

Owns Dockerfile/CI and node1 workload YAML; ImagePolicy elects run_number-sha tags and ImageUpdateAutomation commits them into deploy/.
This commit is contained in:
Ubuntu
2026-09-20 12:57:44 +00:00
commit 05ea40562c
8 changed files with 459 additions and 0 deletions
+58
View File
@@ -0,0 +1,58 @@
# 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: 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 to {{range .Updated.Images}}{{.}}{{end}}
push:
branch: master
update:
path: ./deploy
strategy: Setters