From 0f5a611a2ba6d72fe8e137a7b3b8b378983c9fb4 Mon Sep 17 00:00:00 2001 From: Jacob McSwain Date: Sat, 11 Nov 2023 04:28:44 -0600 Subject: [PATCH] add renovate for PROMETHEUS_CPP --- .github/renovate.json | 11 +++++++++++ Dockerfile | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/renovate.json b/.github/renovate.json index 4ecbcef..7d5865c 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -2,5 +2,16 @@ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ "local>USA-RedDragon/renovate-configs" + ], + "regexManagers": [ + { + "fileMatch": [ + ".*" + ], + "matchStrings": [ + "# renovate: datasource=(?.*?)(?:\\s+extractVersion=(?.+?))?(?:\\s+versioning=(?.+?))?\\s+depName=(?.+?)?\\s(?:\\s*.*_(?:version|VERSION)[:=]\\s*(?.*))?(?:\\s.*_(?:ref|REF):\\s+(?.*))?" + ], + "versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver-coerced{{/if}}" + } ] } diff --git a/Dockerfile b/Dockerfile index 024dd4e..02fd80d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,11 +3,11 @@ FROM ubuntu:22.04 as prometheus-cpp-builder RUN apt update && export DEBIAN_FRONTEND=noninteractive && \ apt install -y curl git cmake build-essential file zlib1g-dev && rm -rf /var/lib/apt/lists/* +# renovate: datasource=github-tags depName=jupp0r/prometheus-cpp ARG PROMETHEUS_CPP_VERSION=v1.1.0 -RUN git clone https://github.com/jupp0r/prometheus-cpp /tmp/prometheus-cpp && \ +RUN git clone https://github.com/jupp0r/prometheus-cpp -b ${PROMETHEUS_CPP_VERSION} /tmp/prometheus-cpp && \ cd /tmp/prometheus-cpp && \ - git checkout ${PROMETHEUS_CPP_VERSION} && \ git submodule init && \ git submodule update && \ mkdir build && \