Skip to content
Discussion options

You must be logged in to vote

Would something like this work?

      matchpattern: 'f8a903f101ce10f686476024898734bb6b36353cc4d41f348514db9004ec0a9d([/:])v\d*\.\d*\.\d*'
      replacepattern: 'f8a903f101ce10f686476024898734bb6b36353cc4d41f348514db9004ec0a9d${1}{{ source "latestVersion" }}'

Note the [/:] instead of [\/:]

Or something like

      matchpattern: (factory\.talos\.dev/[^:\s]+:|/image/[a-f0-9]+/)v\d*\.\d*\.\d*
      replacepattern: ${1}{{ source "latestVersion" }}

Replies: 1 comment 1 reply

Comment options

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

Answer selected by ringods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants