nxtgauge-gitops/clusters/production/flux-system/nxtgauge-apps-image-automation.yaml
sync-test c950c372b7
All checks were successful
sync-to-forgejo / sync (push) Successful in 24s
fix(flux): simplify ImageUpdateAutomation commit messages
- Remove complex template with .Changed.Images that was causing errors
- Use simple commit messages for ImageUpdateAutomation
- Keep ImageRepository and ImagePolicy configurations
2026-07-05 22:40:48 +00:00

105 lines
2.2 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
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
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
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
push:
branch: main
update:
path: ./apps
strategy: Setters