update imageupdate config to not rebuild whole apps

This commit is contained in:
Remy Moll 2023-10-12 12:07:43 +02:00
parent d48e6aa528
commit 5c3abf8f9e
3 changed files with 16 additions and 6 deletions

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-image-updater-config
data:
git.commit-message-template: |
[CI SKIP] automatic update of {{ .AppName }}
{{ range .AppChanges -}}
updates image {{ .Image }} tag '{{ .OldTag }}' to '{{ .NewTag }}'
{{ end -}}

View File

@ -8,9 +8,6 @@ resources:
# - https://github.com/argoproj-labs/argocd-image-updater/manifests/base
- https://raw.githubusercontent.com/argoproj-labs/argocd-image-updater/stable/manifests/install.yaml
# patches:
# - path: ./restic-commands.yaml
# target:
# kind: CronJob
patchesStrategicMerge:
- argocd-image-updater-config.configmap.yaml

View File

@ -7,6 +7,7 @@ metadata:
argocd-image-updater.argoproj.io/image-list: mollre/journal-bot # no version constraints, use newest
argocd-image-updater.argoproj.io/alias.update-strategy: latest
argocd-image-updater.argoproj.io/git-branch: main
argocd-image-updater.argoproj.io/write-back-target: kustomization:/deployment/
argocd-image-updater.argoproj.io/write-back-method: git:secret:argocd/journal-repo
spec: