ci
This commit is contained in:
51
flux/examples/image-automation.yaml
Normal file
51
flux/examples/image-automation.yaml
Normal file
@@ -0,0 +1,51 @@
|
||||
# Optionnel : Image Automation pour l’image applicative (pas le chart).
|
||||
# Adapte sourceRef GitRepository, update.path et la branche à ton dépôt cluster.
|
||||
# Alternative souvent plus simple : ne pousser que l’image en CI et laisser le chart
|
||||
# en OCI avec semver ; Flux réconcilie le chart ; le contenu des slides est déjà
|
||||
# mis à jour par git pull dans le conteneur (pas besoin de redéployer à chaque commit).
|
||||
# Prérequis : image-reflector-controller + image-automation-controller.
|
||||
---
|
||||
apiVersion: image.toolkit.fluxcd.io/v1beta2
|
||||
kind: ImageRepository
|
||||
metadata:
|
||||
name: talks-slides
|
||||
namespace: product
|
||||
spec:
|
||||
image: git.specificat.io/specificat.io/talks-slides
|
||||
interval: 1m
|
||||
secretRef:
|
||||
name: prd-gitea-registry-secret
|
||||
---
|
||||
apiVersion: image.toolkit.fluxcd.io/v1beta2
|
||||
kind: ImagePolicy
|
||||
metadata:
|
||||
name: talks-slides
|
||||
namespace: product
|
||||
spec:
|
||||
imageRepositoryRef:
|
||||
name: talks-slides
|
||||
policy:
|
||||
semver:
|
||||
range: ">=0.0.1-0"
|
||||
---
|
||||
apiVersion: image.toolkit.fluxcd.io/v1beta2
|
||||
kind: ImageUpdateAutomation
|
||||
metadata:
|
||||
name: talks-slides
|
||||
namespace: product
|
||||
spec:
|
||||
interval: 1m
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
namespace: flux-system
|
||||
git:
|
||||
commit:
|
||||
author:
|
||||
name: Flux
|
||||
email: flux@specificat.io
|
||||
push:
|
||||
branch: main
|
||||
update:
|
||||
path: ./clusters/product
|
||||
strategy: Setters
|
||||
Reference in New Issue
Block a user