Skip to content

Updating Renovate comments with new Alpine versions #10452

Discussion options

You must be logged in to vote

I think I found a solution.

Dockerfile:

FROM docker.io/library/alpine:3.16.5
# renovate: datasource=repology depName=alpine_3_16/iptables versioning=loose
ENV IPTABLES_VERSION=1.8.8-r1
RUN apk add "iptables=${IPTABLES_VERSION:?}"

renovate.json:

{
    "regexManagers": [
        {
            "fileMatch": [
                "Dockerfile"
            ],
            "matchStrings": [
                "# renovate: datasource=repology depName=alpine_(?<currentValue>\\d+[._]\\d+)"
            ],
            "currentValueTemplate": "{{{ replace '_' '.' currentValue }}}",
            "datasourceTemplate": "docker",
            "depNameTemplate": "docker.io/library/alpine",
            "versioningTemp…

Replies: 2 comments 17 replies

Comment options

You must be logged in to vote
11 replies
@icereed
Comment options

@syphernl
Comment options

@elchenberg
Comment options

@elchenberg
Comment options

Answer selected by viceice
@viceice
Comment options

@syphernl
Comment options

@elchenberg
Comment options

@romainjrd
Comment options

Comment options

You must be logged in to vote
6 replies
@rarkins
Comment options

@syphernl
Comment options

@rarkins
Comment options

@syphernl
Comment options

@reitzig
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
8 participants