Skip to content

Commit

Permalink
Merge pull request #58 from MichaelSp/add-renovate
Browse files Browse the repository at this point in the history
Add renovate
  • Loading branch information
cfis authored Feb 2, 2024
2 parents c07be0b + 67c5fad commit 810b6ee
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
4 changes: 2 additions & 2 deletions charts/docker-mailserver/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ spec:

containers:
- name: docker-mailserver
image: {{ .Values.image.name }}:{{ default .Chart.AppVersion .Values.image.tag }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{- range $pkey, $pval := .Values.deployment.env }}
- name: {{ $pkey }}
Expand All @@ -86,8 +88,6 @@ spec:
value: /tmp/dms/custom-certs/tls.key
{{- end }}

image: {{ .Values.image.name }}:{{ .Values.image.tag }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
resources:
{{ toYaml .Values.deployment.resources | indent 12 }}
securityContext:
Expand Down
7 changes: 4 additions & 3 deletions charts/docker-mailserver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ nameOverride: ""
fullnameOverride: ""

image:
# The name of the container image to use. See https://hub.docker.com/r/mailserver/docker-mailserver
## image.name is the name of the container image to use. Refer to https://hub.docker.com/r/mailserver/docker-mailserver
name: "mailserver/docker-mailserver"
# The tag of the container image to use. See https://hub.docker.com/r/mailserver/docker-mailserver
tag: "13.3.1"
## image.tag is the tag of the container image to use. Refer to https://hub.docker.com/r/mailserver/docker-mailserver
## If image.tag is not defined it will default to `.Chart.appVersion`
# tag: "latest"
pullPolicy: "IfNotPresent"

# Specify whether to create a serviceAccount for the pod. The name is generated from the
Expand Down
15 changes: 14 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
],
"regexManagers": [
{
"description": "Update docker-mailserver docker image references in appVersion",
"fileMatch": ["Chart\\.yaml$"],
"matchStrings": ["appVersion:\\s+['\"]?(?<currentValue>\\d+\\.\\d+\\.\\d+)['\"]?"],
"depNameTemplate": "mailserver/docker-mailserver",
"datasourceTemplate": "docker",
"versioningTemplate": "docker"
}
]
}

0 comments on commit 810b6ee

Please sign in to comment.