From b3c54ed07af02f4f213dfad39982280313a90d4a Mon Sep 17 00:00:00 2001 From: Peter Date: Wed, 4 Jan 2023 19:09:23 +0100 Subject: [PATCH 1/2] Add regex for matchstring line in Dockerfiles --- .github/renovate.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/renovate.json b/.github/renovate.json index 7d0eabf2..5fab8128 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -16,6 +16,12 @@ "matchStrings": [ "#\\srenovate:\\sdatasource=(?.*?) depName=(?.*?)( versioning=(?.*?))?( extractVersion=(?.*?))?\\s.*?_VERSION=(?.*)" ] + }, + { + "fileMatch": ["(^|/)Dockerfile[^/]*$"], + "matchStrings": [ + "#\\srenovate:\\sdatasource=(?.*?) depName=(?.*?)( versioning=(?.*?))?\\s(ENV|ARG) .*?_VERSION=(?.*)\\s" + ] } ] } From cb098df743a5da37ca450212da0321f00c97163e Mon Sep 17 00:00:00 2001 From: Peter Date: Wed, 4 Jan 2023 19:10:32 +0100 Subject: [PATCH 2/2] Update gosu to 1.16 Change ENV to ARG Add matchstring line --- data/Dockerfiles/dovecot/Dockerfile | 4 +++- data/Dockerfiles/sogo/Dockerfile | 3 ++- data/Dockerfiles/solr/Dockerfile | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/data/Dockerfiles/dovecot/Dockerfile b/data/Dockerfiles/dovecot/Dockerfile index 4e90052b..38af3c20 100644 --- a/data/Dockerfiles/dovecot/Dockerfile +++ b/data/Dockerfiles/dovecot/Dockerfile @@ -3,8 +3,10 @@ LABEL maintainer "Andre Peters " ARG DEBIAN_FRONTEND=noninteractive ARG DOVECOT=2.3.19.1 +# renovate: datasource=github-releases depName=tianon/gosu versioning=semver-coerced +ARG GOSU_VERSION=1.16 ENV LC_ALL C -ENV GOSU_VERSION 1.14 + # Add groups and users before installing Dovecot to not break compatibility RUN groupadd -g 5000 vmail \ diff --git a/data/Dockerfiles/sogo/Dockerfile b/data/Dockerfiles/sogo/Dockerfile index f08600ac..da8f23be 100644 --- a/data/Dockerfiles/sogo/Dockerfile +++ b/data/Dockerfiles/sogo/Dockerfile @@ -3,8 +3,9 @@ LABEL maintainer "Andre Peters " ARG DEBIAN_FRONTEND=noninteractive ARG SOGO_DEBIAN_REPOSITORY=http://packages.sogo.nu/nightly/5/debian/ +# renovate: datasource=github-releases depName=tianon/gosu versioning=semver-coerced +ARG GOSU_VERSION=1.16 ENV LC_ALL C -ENV GOSU_VERSION 1.14 # Prerequisites RUN echo "Building from repository $SOGO_DEBIAN_REPOSITORY" \ diff --git a/data/Dockerfiles/solr/Dockerfile b/data/Dockerfiles/solr/Dockerfile index 06299257..0c5af1af 100644 --- a/data/Dockerfiles/solr/Dockerfile +++ b/data/Dockerfiles/solr/Dockerfile @@ -2,7 +2,8 @@ FROM solr:7.7-slim USER root -ENV GOSU_VERSION 1.11 +# renovate: datasource=github-releases depName=tianon/gosu versioning=semver-coerced +ARG GOSU_VERSION=1.16 COPY solr.sh / COPY solr-config-7.7.0.xml /