Ungrouping: having the same dependency in separate package files #9039
Answered
by
matemoln
matemoln
asked this question in
Request Help
-
Hi, I have .env files consumed by docker-compose for referencing docker images. # config/prod.env
APP_IMAGE=myorg/app:1-linux # config/test.env
APP_IMAGE=myorg/app:2-linux // renovate-config.js
extends: ["config:base", "docker:enableMajor"],
regexManagers: [
{
fileMatch: ["^config/.*env$"],
matchStrings: [".*_IMAGE=(?<depName>.*?):(?<currentValue>.*?)\n"],
datasourceTemplate: "docker",
versioningTemplate: "docker",
},
],
packageRules: [
{
matchFiles: ["config/test.env"],
matchPackagePatterns: ["^myorg"],
automerge: true,
},
],
requiredStatusChecks: null, If I have a new image (e.g: How could I separate this change into separate branches and have the changes in Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
matemoln
Mar 9, 2021
Replies: 1 comment
-
Added |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
matemoln
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Added
groupName
topackageRules
and worked like a charm. Thank you for creating such a powerful tool! :)