Ability to only workflows when a tag is committed
J
Jake Cozart
As a small development team we only want to run builds on git tags so that we can save build credits.
Currently we can do this with filters at the job level but there is a lot of extra boiler plate code that goes into complex workflows and jobs. If we could specify a filter at a higher level (workflow or at the top level of the yaml file) this would make our configs much more clean and easy to read / manage.
Example config
workflows:
version: 2
filters:
tags:
only: /.*/
build:
...
Salil Subbakrishna
Jake Cozart you can use a "when" in your workflow to filter things in and out (https://circleci.com/docs/2.0/configuration-reference/#using-when-in-workflows). In your case, I think you could just use a when and the pipeline value for a tag, which is empty (i.e. false) when the pipeline was not triggered by a tag.