October 9, 2018, 4:53pm
If we wanted to have a convention like:
And then tag hotfix releases like:
Is it possible to have Drone trigger a step when the
.* suffix is provided?
The docs only mention prefix matching. Right now our projects use prefixes like
rel but it’d be nice to use suffix matching instead.
drone uses the
path.Match function for matching parameters, which supports a glob syntax. The glob syntax is not restricted to prefix or suffix, and can be used anywhere in a string. You can read more about the syntax and see some examples of how this function works here:
October 9, 2018, 5:30pm
It would be awesome to have this in the docs, then! Maybe I’ll submit a PR!
October 12, 2018, 7:42pm
Just for posterity and so I don’t forget, you totally can use that code block I originally posted above.
The golang docs linked above are a nice way to verify expressions in the browser.