How to trigger a build from pushing tags?

workflows

#1

I have tried, without success, to trigger my publish job from tags.
I have read the docs tens of times, browsed this Discuss at least as many times, and tried a lot of solutions.

I have added the counter-intuitive

tags:
 only: /.*/

in every job, but still 0 trigger. Any idea why ?

Below is my workflow configuration.

workflows:
  version: 2
  test_build_deploy:
    jobs:
      - create_base_env:
          filters:
            tags:
              only: /.*/
      - test:
          requires:
            - create_base_env
          filters:
            tags:
              only: /.*/
      - build:
          requires:
            - create_base_env
          filters:
            tags:
              only: /.*/
      - dockerize:
          requires:
            - build
            - test
          filters:
            branches:
              only: master
            tags:
              only: /.*/
      - publish:
          requires:
            - build
            - test
          filters:
            branches:
              ignore: /.*/
            tags:
              only: /^v.*/

#4

Solution : the workflows were just not located at the same place as the branches workflows.
They do not directly appear on the left panel behind the project name, as branch workflows do.

To access them, click the project name to go to this project’s workflows at https://circleci.com/:provider/:org/workflows/:project.


#5

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