flux: add auto update images
This commit is contained in:
@@ -19,8 +19,10 @@ spec:
|
|||||||
role: worker-node
|
role: worker-node
|
||||||
containers:
|
containers:
|
||||||
- name: lyrionmusicserver
|
- name: lyrionmusicserver
|
||||||
image: lmscommunity/lyrionmusicserver:latest
|
### Maintained by flux - Image Update Automation
|
||||||
imagePullPolicy: Always
|
image: lmscommunity/lyrionmusicserver:9.1.2 # {"$imagepolicy": "lyrionmusicserver:lms"}
|
||||||
|
###
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
env:
|
env:
|
||||||
- name: LOGLEVEL
|
- name: LOGLEVEL
|
||||||
value: WARN
|
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
|
- playlists-pvc.yaml
|
||||||
- ingress.yaml
|
- ingress.yaml
|
||||||
- music-pv.yaml
|
- music-pv.yaml
|
||||||
|
- image-policy.yaml
|
||||||
|
- image-repo.yaml
|
||||||
|
- image-update-automation.yaml
|
||||||
Reference in New Issue
Block a user