Initial segregate: proxy source, deploy manifests, ImagePolicy Flux CRs.
build-and-push / build (push) Failing after 2m45s
build-and-push / build (push) Failing after 2m45s
Move workload out of infra with cursor-devbox-style GitRepository + run_number-sha image automation.
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
# Flux image automation for cursor-agent-api-proxy (applied into flux-system on node4).
|
||||
# GitRepository cursor-agent-api-proxy is defined in infra glue (131-cursor-agent-api.yaml).
|
||||
# CI tags: latest, <sha>, <run_number>-<sha> — policy elects the last form.
|
||||
|
||||
---
|
||||
apiVersion: image.toolkit.fluxcd.io/v1
|
||||
kind: ImageRepository
|
||||
metadata:
|
||||
name: cursor-agent-api-proxy
|
||||
namespace: flux-system
|
||||
spec:
|
||||
image: dcr.trinitysan.by/infra/cursor-agent-api-proxy
|
||||
interval: 1m0s
|
||||
secretRef:
|
||||
name: dcr-registry-auth-ro
|
||||
|
||||
---
|
||||
apiVersion: image.toolkit.fluxcd.io/v1
|
||||
kind: ImagePolicy
|
||||
metadata:
|
||||
name: cursor-agent-api-proxy
|
||||
namespace: flux-system
|
||||
spec:
|
||||
imageRepositoryRef:
|
||||
name: cursor-agent-api-proxy
|
||||
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-agent-api-proxy
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 5m0s
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: cursor-agent-api-proxy
|
||||
git:
|
||||
checkout:
|
||||
ref:
|
||||
branch: master
|
||||
commit:
|
||||
author:
|
||||
email: fluxcdbot@users.noreply.gitea.trinitysan.by
|
||||
name: fluxcdbot
|
||||
messageTemplate: |
|
||||
chore(deploy): update cursor-agent-api-proxy image
|
||||
{{range .Changed.Changes}}{{print .OldValue}} -> {{println .NewValue}}{{end}}
|
||||
push:
|
||||
branch: master
|
||||
update:
|
||||
path: ./deploy
|
||||
strategy: Setters
|
||||
Reference in New Issue
Block a user