Updating Renovate comments with new Alpine versions #10452
-
Renovate discovered an update of # renovate: datasource=repology depName=alpine_3_13/bash versioning=loose
ENV BASH_VERSION="5.1.0-r0" These comments are being handled by a regex manager: {
description: 'Update VERSION variables in Dockerfiles',
fileMatch: ['^Dockerfile$'],
matchStrings: [
'# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>.+?)(?: versioning=(?<versioning>[a-z-]+?))?\\s(?:ENV|ARG) .+?_VERSION="(?<currentValue>.+?)"\\s',
'# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>.+?)(?: versioning=(?<versioning>[a-z-]+?))?\\s(?:ENV|ARG) VERSION="(?<currentValue>.+?)"\\s',
],
versioningTemplate: '{{#if versioning}}{{versioning}}{{else}}semver{{/if}}',
}, Separately they would properly upgrade these packages, but not when Alpine switches versions. Is there a way for Renovate to update the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 17 replies
-
Maybe you can do it with another regex manager, regex |
Beta Was this translation helpful? Give feedback.
-
When alpine switches versions, what does the latest and second-latest release look like? e.g. does it switch from |
Beta Was this translation helpful? Give feedback.
I think I found a solution.
Dockerfile:
renovate.json: