From dd72e7d0cfa65c2780e608186cb20a010d7955d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20H=C3=BCttemann?= Date: Fri, 22 Sep 2023 14:55:28 +0200 Subject: [PATCH] Add renovate config to match packages --- .woodpecker.yaml | 2 +- Dockerfile | 22 +++++++++++----------- renovate.json | 21 +++++++++++++++++++-- 3 files changed, 31 insertions(+), 14 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index e0c545c..e01b915 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -16,7 +16,7 @@ steps: build-branch: when: branch: - exclude: [ "main" ] + exclude: ["main"] image: woodpeckerci/plugin-docker-buildx:2.1.0 pull: true settings: diff --git a/Dockerfile b/Dockerfile index bb58fb7..ff91876 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,20 @@ FROM python:3.11.5-alpine3.17 COPY --from=koalaman/shellcheck:v0.9.0 /bin/shellcheck /bin/ -# renovate: datasource=repology depName=alpine_edge/build-base versioning=loose -ENV BUILD_BASE_VERSION="0.5" -# renovate: datasource=repology depName=alpine_edge/gcc versioning=loose -ENV GCC_VERSION="13.2.0" -# renovate: datasource=repology depName=alpine_edge/ruby versioning=loose -ENV RUBY_VERSION="3.2.2" -# renovate: datasource=repology depName=alpine_edge/git versioning=loose -ENV GIT_VERSION="2.42.0" -# renovate: datasource=repology depName=alpine_edge/openssh-keygen versioning=loose -ENV OPENSSH_KEYGEN_VERSION="9.4_p1-r0" +# renovate: datasource=repology depName=alpine_3_17/build-base versioning=loose +ENV BUILD_BASE_VERSION="0.5-r3" +# renovate: datasource=repology depName=alpine_3_17/gcc versioning=loose +ENV GCC_VERSION="12.2.1_git20220924-r4" +# renovate: datasource=repology depName=alpine_3_17/ruby versioning=loose +ENV RUBY_VERSION="3.1.4-r0" +# renovate: datasource=repology depName=alpine_3_17/git versioning=loose +ENV GIT_VERSION="2.38.5-r0" +# renovate: datasource=repology depName=alpine_3_17/openssh-keygen versioning=loose +ENV OPENSSH_KEYGEN_VERSION="9.1_p1-r4" # renovate: datasource=pypi depName=pre-commit versioning=pep440 ENV PRE_COMMIT_VERSION="3.3.3" # renovate: datasource=rubygems depName=mdl versioning=ruby -ENV MDL_VERSION="13.2.0" +ENV MDL_VERSION="0.11.0" RUN apk add --update --no-cache \ build-base="${BUILD_BASE_VERSION}" \ diff --git a/renovate.json b/renovate.json index c125d59..2c06d91 100644 --- a/renovate.json +++ b/renovate.json @@ -1,6 +1,23 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "local>renovate/config" + "extends": ["local>renovate/config"], + "groupName": "all dependencies", + "groupSlug": "all", + "packageRules": [ + { + "groupName": "all dependencies", + "groupSlug": "all", + "matchPackagePatterns": ["*"] + } + ], + "separateMajorMinor": false, + "regexManagers": [ + { + "fileMatch": ["^Dockerfile$"], + "matchStrings": [ + "#\\s*renovate:\\s*datasource=(?.*?) depName=(?.*?)( versioning=(?.*?))?\\sENV .*?_VERSION=\"(?.*)\"\\s" + ], + "versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}" + } ] }