Workflows filtered git tag not works

workflows

#1

I configured with following .circleci/config.yml, but job deploy in the workflow did not work.

Are there any oversights?

Regards


#2

Since deploy depends on build you must add tag filters to the build job as well.

workflows:
  version: 2
  build-n-deploy:
    jobs:
      - build:
          filters:
            tags:
              only: /.*/
      - deploy:
          requires:
            - build
          filters:
            tags:
              only: /^v.*/
            branches:
              ignore: /.*/

Please see this doc: https://circleci.com/docs/2.0/workflows/#git-tag-job-execution

Specifically:

Note: The build job must also have a filters tags section, as it is a transient dependency of the deploy job.


#3

Thanks levlaz
Your anwser works fine!!


#4

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.