flux: add auto update images
This commit is contained in:
@@ -19,8 +19,10 @@ spec:
|
||||
role: worker-node
|
||||
containers:
|
||||
- name: lyrionmusicserver
|
||||
image: lmscommunity/lyrionmusicserver:latest
|
||||
imagePullPolicy: Always
|
||||
### Maintained by flux - Image Update Automation
|
||||
image: lmscommunity/lyrionmusicserver:9.1.2 # {"$imagepolicy": "lyrionmusicserver:lms"}
|
||||
###
|
||||
imagePullPolicy: IfNotPresent
|
||||
env:
|
||||
- name: LOGLEVEL
|
||||
value: WARN
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
apiVersion: image.toolkit.fluxcd.io/v1
|
||||
kind: ImagePolicy
|
||||
metadata:
|
||||
name: lyrionmusicserver
|
||||
spec:
|
||||
imageRepositoryRef:
|
||||
name: lyrionmusicserver
|
||||
policy:
|
||||
semver:
|
||||
range: 9.x.x
|
||||
@@ -0,0 +1,7 @@
|
||||
apiVersion: image.toolkit.fluxcd.io/v1
|
||||
kind: ImageRepository
|
||||
metadata:
|
||||
name: lyrionmusicserver
|
||||
spec:
|
||||
image: lmscommunity/lyrionmusicserver
|
||||
interval: 72h
|
||||
@@ -0,0 +1,24 @@
|
||||
apiVersion: image.toolkit.fluxcd.io/v1
|
||||
kind: ImageUpdateAutomation
|
||||
metadata:
|
||||
name: lms
|
||||
spec:
|
||||
interval: 30m
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: lms
|
||||
git:
|
||||
checkout:
|
||||
ref:
|
||||
branch: main
|
||||
commit:
|
||||
author:
|
||||
name: FluxCD
|
||||
email: flux@local
|
||||
messageTemplate: |
|
||||
Update lyrionmusicserver image.
|
||||
push:
|
||||
branch: main
|
||||
update:
|
||||
path: ./deploy/app/deployment.yaml
|
||||
strategy: Setters
|
||||
@@ -9,3 +9,6 @@ resources:
|
||||
- playlists-pvc.yaml
|
||||
- ingress.yaml
|
||||
- music-pv.yaml
|
||||
- image-policy.yaml
|
||||
- image-repo.yaml
|
||||
- image-update-automation.yaml
|
||||
Reference in New Issue
Block a user