Skip to content

Help with regex manager + autoReplaceStringTemplates #21094

Closed Answered by setchy
setchy asked this question in Request Help
Discussion options

You must be logged in to vote

Improved with the release of indentation capture groups

"regexManagers": [
    {
      "description": "Bitbucket Pipelines: update to use authenticated image structure",
      "fileMatch": [
        "(^|\\/|\\.)bitbucket-pipelines.ya?ml$"
      ],
      "matchStringsStrategy": "combination",
      "matchStrings": [
        "(?<indentation>[ \\t]*)image:\\s+(?<depName>[a-z-]+)(?::(?<currentValue>[a-z0-9.-]+))?(?:@(?<currentDigest>sha256:[a-f0-9]+))?",
        "(?<indentation>[ \\t]*)image:\\n\\s+name:\\s+(?<depName>[a-z-]+)(?::(?<currentValue>[a-z0-9.-]+))?(?:@(?<currentDigest>sha256:[a-f0-9]+))?\\n\\s+username: \\$SOME_USER\\n\\s+password: \\$SOME_PASSWORD\\n\\s+email: \\$SOME_EMAIL"

Replies: 3 comments

Comment options

setchy
Mar 22, 2023
Collaborator Author

You must be logged in to vote
0 replies
Comment options

setchy
Mar 23, 2023
Collaborator Author

You must be logged in to vote
0 replies
Comment options

setchy
Apr 3, 2023
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by setchy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant