Build/workflow not triggered when tag is pushed

circle.yml

#1

Hey All

When I push a tag in Github, I dont see a build being triggered in CircleCI (CCI). I’ve checked the Github CCI hook and can see that a webhook has been triggered when I’ve pushed the tag to remote. Did some googling and found this article: https://support.circleci.com/hc/en-us/articles/115013854347-Jobs-builds-not-triggered-when-pushing-tag. Followed the instructions and pushed one tag to the remote and had no luck.

Has anyone had similar issues? Would love to hear how you’ve fixed the issue. Here is my workflow config

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

Cheers


Not running job based on filter: tags: only and filter: branch: ignore
#2

i have a feeling that the ignore: /.*/ might be responsible for your issue. Can you try to remove that line ?


#3

Tried that already. If I dont add that filter, CCI will run the “deploy” workflow on every commit to the branch as well.


#4

Any luck resolving this issue?

I have tried everything suggested in every post on the Internets to no avail.

I have a sneaky suspicion that Tag Push’s are broken in Circle CI v2 :frowning:


#5

Support team helped me out. Similar to the deploy task, build task needed filters as well. See my updated workflows config here:

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

#6

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