Skip to content

Match a Github release with a version prefix and that uses underscores #28487

Discussion options

You must be logged in to vote

That put me on the right track.

Dockerfile

ARG CRYPTOPP_VERSION=8_8_0

RUN curl -fsSL "https://github.com/weidai11/cryptopp/archive/refs/tags/CRYPTOPP_${CRYPTOPP_VERSION}/cryptopp${CRYPTOPP_VERSION//_/}.tar.gz"

renovate.json5

{
    baseBranches: [
        "main",
    ],
    enabledManagers: [
        "custom.regex",
    ],
    customManagers: [
        {
            depNameTemplate: "Crypto++",
            fileMatch: ["^Dockerfile$"],
            matchStrings: ["ARG CRYPTOPP_VERSION=(?<currentValue>.*?)\\n"],
            datasourceTemplate: "github-releases",
            packageNameTemplate: "weidai11/cryptopp",
        },
    ],
    packageRules: [
        {
            description: "Cus…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nedix
Comment options

Answer selected by viceice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants