Cannot Trigger with new Git Tag

2.0

#1

We are attempting to setup a workflow were a release to a production server occurs when a GH release is cut. I have the following config:

workflows:
  version: 2
  build_test_deploy:
    jobs:
      - build
      - test:
          requires:
            - build
          filters:
            branches:
              ignore: master
      - deploy_staging:
          requires:
            - build
          filters:
            branches:
              only: master
      - deploy_production:
          requires:
            - build
          filters:
            tags:
              only: /.*/
            branches:
              ignore: /.*/

However, no matter what, creating new tags will not start a build. We have created a release on GH, created a tag on GH, created a tag manually and pushed it to our remote. Nothing. We have tried multiple different matcher strings as well (i.e. /release-.*/)

The other jobs in our workflow work without issue.


#2

Hey @tagCincy, funnily enough I’m playing around with tag filtering at the moment too, to get the build job triggering for a tag push, you will also have to add a filter section to that:

 - build
     filters:
       tags:
         only: /.*/

So that it will trigger on all tag pushes (as well as all branch pushes by default).

hope that helps!


#3

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