diff --git a/infrastructure/argocd-imageupdate/argocd-image-updater-config.configmap.yaml b/infrastructure/argocd-imageupdate/argocd-image-updater-config.configmap.yaml new file mode 100644 index 0000000..50b2884 --- /dev/null +++ b/infrastructure/argocd-imageupdate/argocd-image-updater-config.configmap.yaml @@ -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 -}} diff --git a/infrastructure/argocd-imageupdate/kustomization.yaml b/infrastructure/argocd-imageupdate/kustomization.yaml index f79b6c9..4ef1746 100644 --- a/infrastructure/argocd-imageupdate/kustomization.yaml +++ b/infrastructure/argocd-imageupdate/kustomization.yaml @@ -7,10 +7,7 @@ namespace: argocd resources: # - https://github.com/argoproj-labs/argocd-image-updater/manifests/base - https://raw.githubusercontent.com/argoproj-labs/argocd-image-updater/stable/manifests/install.yaml + +patchesStrategicMerge: + - argocd-image-updater-config.configmap.yaml - -# patches: -# - path: ./restic-commands.yaml -# target: -# kind: CronJob - diff --git a/kluster-deployments/journal/application.yaml b/kluster-deployments/journal/application.yaml index 23ee935..8140a2c 100644 --- a/kluster-deployments/journal/application.yaml +++ b/kluster-deployments/journal/application.yaml @@ -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: