Multiple workflows are started for tags


#1

When I push a new tag 2 workflow builds are triggered. One for the commit and one for the tag. Is the intended behaviour? Or is this a bug. For me it’s a problem because it’s essentially the same commit. I would like it to only start 1 build on a new tag that does all four jobs. Is this possible?

workflows:
  version: 2
  test_build_deploy:
    jobs:
      - test:
          filters:
            tags:
              only: /.*/
      - build:
          context: org-global
          filters:
            tags:
              only: /.*/
          requires:
            - test
      - deploy_to_test:
          context: org-global
          filters:
            branches:
              only: master
            tags:
              only: /.*/
          requires:
            - build
      - deploy_to_prod:
          context: org-global
          filters:
            branches:
              ignore: /.*/
            tags:
              only: /^v.*/
          requires:
            - deploy_to_test

#2

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