75 lines
1.5 KiB
YAML
75 lines
1.5 KiB
YAML
apiVersion: source.toolkit.fluxcd.io/v1
|
|
kind: GitRepository
|
|
metadata:
|
|
name: journal-bot
|
|
namespace: flux-system
|
|
spec:
|
|
interval: 1m0s
|
|
ref:
|
|
branch: main
|
|
secretRef:
|
|
name: journal-bot
|
|
timeout: 60s
|
|
url: ssh://git@git.kluster.moll.re:2222/remoll/journal-bot.git
|
|
---
|
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
kind: Kustomization
|
|
metadata:
|
|
name: journal-bot-kustomize
|
|
namespace: flux-system
|
|
spec:
|
|
force: true
|
|
interval: 1m0s
|
|
path: ./deployment/overlays/main
|
|
prune: false
|
|
sourceRef:
|
|
kind: GitRepository
|
|
name: journal-bot
|
|
|
|
---
|
|
apiVersion: image.toolkit.fluxcd.io/v1beta2
|
|
kind: ImageRepository
|
|
metadata:
|
|
name: journal-bot-registry
|
|
namespace: flux-system
|
|
spec:
|
|
image: registry.hub.docker.com/mollre/journal-bot
|
|
interval: 15m
|
|
|
|
---
|
|
apiVersion: image.toolkit.fluxcd.io/v1beta2
|
|
kind: ImagePolicy
|
|
metadata:
|
|
name: journal-bot-imagerange
|
|
namespace: flux-system
|
|
spec:
|
|
imageRepositoryRef:
|
|
name: journal-bot-registry
|
|
policy:
|
|
semver:
|
|
range: 1.x.x
|
|
---
|
|
apiVersion: image.toolkit.fluxcd.io/v1beta1
|
|
kind: ImageUpdateAutomation
|
|
metadata:
|
|
name: journal-bot-automation
|
|
namespace: flux-system
|
|
spec:
|
|
interval: 30m
|
|
sourceRef:
|
|
kind: GitRepository
|
|
name: journal-bot
|
|
git:
|
|
checkout:
|
|
ref:
|
|
branch: main
|
|
commit:
|
|
author:
|
|
email: flux@moll.re
|
|
name: fluxcdbot
|
|
messageTemplate: '[CI SKIP] Bump {{range .Updated.Images}}{{println .}}{{end}}'
|
|
push:
|
|
branch: main
|
|
update:
|
|
path: ./deployment/base/deployment.yaml
|
|
strategy: Setters |