Job starts for every commit instead for tags only

I’m trying to run my deployment jobs ONLY when a git tag is pushed. This is actually similar to the documentation: " The deploy job runs for no branches and only tags starting with ‘config-test’"
https://circleci.com/docs/2.0/workflows/#executing-workflows-for-a-git-tag

My configuration is basically the same (only the job names are different) but on every push all depoyment jobs run. Here is my config:

workflows:
  version: 2
  workflow_deploy_library:
    jobs:
      # build and deploy libraries
      - auth_lib_release:
        filters:
          branches:
            ignore: /.*/
          tags:
            # all tags starting with "auth/v"
            only: /^auth\/v.*/

What am I doing wrong? I simply don’t get it or it is a bug -.-’

1 Like

Hi @goemic. Welcome to the CircleCI community!

The config looks indeed correct.

Could you please share the link to the related CircleCI project?

If you don’t feel comfortable sharing the link here, please submit a support request so we can further investigate.

1 Like

Hi @goemic,

We got your support ticket, and we’re looking into it!

1 Like

I am having this same issue. Very strange.

Hi @Snarik,

The issue with the config in this thread was that the filter parameter was not indented correctly.
Could you check if your config has filter indented further to the right than the job name?

If you would like us to take a look at your config, please attach a snippet of it here.

Thanks!

1 Like

Yup, this fixes the problem! Thank you!