nxtgauge-gitops/clusters/production/flux-system/nxtgauge-apps-image-automation.yaml
sync-test a5ecc12648
All checks were successful
sync-to-forgejo / sync (push) Successful in 17s
fix(flux): remove filterTags from ImagePolicies
- Remove filterTags pattern that wasn't matching actual registry tags
- ImagePolicies now resolve correctly to available tags
- Tags found: ghcr-migration, manual-build, high-performance-latest
2026-07-06 04:08:20 +05:30

107 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
Images updated: {{range .Changed.Images}}{{println .}}{{end}}
push:
branch: main
update:
path: ./apps
strategy: Setters