Regex to build and deploy when any tag is pushed


As per our docs you can add settings circle.yml to build and deploy your project when you push a tag / release.

If you wan to build whenever any tag is pushed, you need to use the following regex:


(/.*/ won’t work)

So your deploy section would like something like this:

    tag: /.*?/
    owner: foo
      - "true"

The final “true” statement is just a way to test before you put in the real deployment commands/


Out of curiosity, how come greedy matches don’t work?