Example of git-refs #8402
-
Is there an example of how to use I want to get updates for an git repository, to merge it into my current project. I also don't know if it is even the right datasource to achieve this. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Are you using the regex manager? I'm not sure we have a use case for git-refs in the codebase currently. |
Beta Was this translation helpful? Give feedback.
-
Yes I'm using the regex manager or at least tried to. I want to build a Docker image for a git repository and rebuild it if the repository gets updated. Here's the config I have for now:
|
Beta Was this translation helpful? Give feedback.
-
If I change
|
Beta Was this translation helpful? Give feedback.
-
For both,
|
Beta Was this translation helpful? Give feedback.
-
If I add The full config now looks like this:
|
Beta Was this translation helpful? Give feedback.
If I add
currentValue
as an empty group to the regex and change it to\s+ENV\s*MORTY_VERSION="(?<currentValue>)(?<currentDigest>.*?)"\s+
it works.The full config now looks like this: