Skip to content

Example of git-refs #8402

Answered by samuel-p
samuel-p asked this question in Request Help
Jan 24, 2021 · 5 comments · 2 replies
Discussion options

You must be logged in to vote

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:

{
  "regexManagers": [{
      "fileMatch": ["^Dockerfile$"],
      "matchStrings": ["\s+ENV\s*COMMIT_HASH="(?<currentValue>)(?<currentDigest>.*?)"\s+"],
      "depNameTemplate": "<git-url>",
      "versioningTemplate": "git",
      "datasourceTemplate": "git-refs"
  }]
}

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rarkins
Comment options

Comment options

You must be logged in to vote
1 reply
@rarkins
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by samuel-p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants