38 lines
922 B
YAML
38 lines
922 B
YAML
|
|
apiVersion: image.toolkit.fluxcd.io/v1
|
||
|
|
kind: ImageUpdateAutomation
|
||
|
|
metadata:
|
||
|
|
name: flux-infra
|
||
|
|
spec:
|
||
|
|
interval: 30m
|
||
|
|
sourceRef:
|
||
|
|
kind: GitRepository
|
||
|
|
name: flux-infra
|
||
|
|
git:
|
||
|
|
checkout:
|
||
|
|
ref:
|
||
|
|
branch: ${GIT_BRANCH}
|
||
|
|
commit:
|
||
|
|
author:
|
||
|
|
email: home-lab-fluxcd-bot@users.noreply.home.lab
|
||
|
|
name: home-lab-fluxcd-bot
|
||
|
|
messageTemplate: |
|
||
|
|
Automated image update
|
||
|
|
|
||
|
|
Files:
|
||
|
|
{{ range $filename, $_ := .Changed.FileChanges -}}
|
||
|
|
- {{ $filename }}
|
||
|
|
{{ end -}}
|
||
|
|
|
||
|
|
Objects:
|
||
|
|
{{ range $resource, $changes := .Changed.Objects -}}
|
||
|
|
- {{ $resource.Kind }} {{ $resource.Name }}
|
||
|
|
Changes:
|
||
|
|
{{- range $_, $change := $changes }}
|
||
|
|
- {{ $change.OldValue }} -> {{ $change.NewValue }}
|
||
|
|
{{ end -}}
|
||
|
|
{{ end -}}
|
||
|
|
push:
|
||
|
|
branch: ${GIT_BRANCH}
|
||
|
|
update:
|
||
|
|
path: "./components"
|
||
|
|
strategy: Setters
|