Is your feature request related to a problem?
I want do update all the given files that contain a match and avoid failing if no match
Solution you'd like
targets:
update-files:
name: "Update files (GCP/AWS)"
sourceid: latestVersion
scmid: githubConfig
kind: file
spec:
searchpattern: "*.yaml"
ifmatch: "true"
matchpattern: '(IMAGE_.+): "platform-(.+)-([0-9]+)"'
replacepattern: '$1: "platform-$2-{{ source "latestVersion" }}"'
Alternatives you've considered
Use the explicit list of files:
spec:
files:
- file_1.yaml
- file_2.yaml
However, it requires to keep the list of files, while searchpattern could help with finding files that follow a pattern to run the replace if a match.
However, searchpattern might match files that don't have the matchpattern therefore the target step failed.
Anything else?
No response
Is your feature request related to a problem?
I want do update all the given files that contain a match and avoid failing if no match
Solution you'd like
Alternatives you've considered
Use the explicit list of files:
However, it requires to keep the list of files, while
searchpatterncould help with finding files that follow a pattern to run the replace if a match.However, searchpattern might match files that don't have the
matchpatterntherefore the target step failed.Anything else?
No response