nxtgauge-gitops/clusters/production/flux-system/nxtgauge-apps-image-automation.yaml
sync-test 581c6c78e1
All checks were successful
sync-to-forgejo / sync (push) Successful in 26s
feat(flux): add Image Automation for all nxtgauge apps
2026-07-06 03:56:23 +05:30

113 lines
2.4 KiB
YAML

# Flux Image Automation for NXTgauge Apps (Admin, Frontend, AI Assistant)
# Watches ci.nxtgauge.com/ashwin/* registry for new images
# Admin Solid
---
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImageRepository
metadata:
name: nxtgauge-admin-solid
namespace: flux-system
spec:
image: ci.nxtgauge.com/ashwin/nxtgauge-admin-solid
interval: 1m0s
secretRef:
name: forgejo-regcred
---
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImagePolicy
metadata:
name: nxtgauge-admin-solid
namespace: flux-system
spec:
imageRepositoryRef:
name: nxtgauge-admin-solid
filterTags:
pattern: '^[a-f0-9]{40}$'
policy:
alphabetical:
order: asc
# Frontend Solid
---
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImageRepository
metadata:
name: nxtgauge-frontend-solid
namespace: flux-system
spec:
image: ci.nxtgauge.com/ashwin/nxtgauge-frontend-solid
interval: 1m0s
secretRef:
name: forgejo-regcred
---
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImagePolicy
metadata:
name: nxtgauge-frontend-solid
namespace: flux-system
spec:
imageRepositoryRef:
name: nxtgauge-frontend-solid
filterTags:
pattern: '^[a-f0-9]{40}$'
policy:
alphabetical:
order: asc
# AI Assistant
---
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImageRepository
metadata:
name: nxtgauge-ai-assistant
namespace: flux-system
spec:
image: ci.nxtgauge.com/ashwin/nxtgauge-ai-assistant
interval: 1m0s
secretRef:
name: forgejo-regcred
---
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImagePolicy
metadata:
name: nxtgauge-ai-assistant
namespace: flux-system
spec:
imageRepositoryRef:
name: nxtgauge-ai-assistant
filterTags:
pattern: '^[a-f0-9]{40}$'
policy:
alphabetical:
order: asc
# Image Update Automation for Apps
---
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImageUpdateAutomation
metadata:
name: nxtgauge-apps
namespace: flux-system
spec:
interval: 2m0s
sourceRef:
kind: GitRepository
name: flux-system
git:
checkout:
ref:
branch: main
commit:
author:
email: fluxcdbot@nxtgauge.com
name: FluxCD Image Automation
messageTemplate: |
chore(gitops): update nxtgauge app images
Images updated: {{range .Updated.Images}}{{println .}}{{end}}
push:
branch: main
update:
path: ./apps
strategy: Setters