Workaround for Feature Request [#21987] - Regex Manager Support for Azure DevOps Pipeline in Renovate #31465
Replies: 1 comment
-
This works for me: {
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"customManagers": [
{
"customType": "regex",
"description": "Update container job images in azure-pipelines.yaml",
"fileMatch": ["(^|/)azure-pipelines.ya?ml$"],
"matchStrings": [
"image:\\s+(?<depName>[^\\s:@\\\"]+):(?<currentValue>[-a-zA-Z0-9.]+)(?:@(?<currentDigest>sha256:[a-zA-Z0-9]+))?"
],
"autoReplaceStringTemplate": "image: {{depName}}{{#if newValue}}:{{newValue}}{{/if}}{{#if newDigest}}@{{newDigest}}{{/if}}",
"datasourceTemplate": "docker"
}
]
}
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What would you like help with?
Other
How are you running Renovate?
Self-hosted
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
Azure DevOps Server
Please tell us more about your question or problem
While waiting for the feature request in issue #21987 to be implemented, I am looking for an alternative solution. Specifically, I am considering using a regex manager for an Azure DevOps pipeline that runs Renovate.
I'm really new to renovate so this approach does not work yet.
I would greatly appreciate your input. Can you please help me out?
Azure pipeline
test-pipeline.yaml
:Excerpts from my tries in the repository's
renovate.json
:Logs (if relevant)
Log excerpts
From second snippet:
Beta Was this translation helpful? Give feedback.
All reactions