Builds for tags not triggering

The main issue here looks to be that only the deploy job is configured to run for tag pushes. Since the deploy job has a dependency on build, build needs to run first and it isn’t configured to run on tag pushes.

Basically, all upstream jobs need to have:

    tags:
      only: /\d+(\.\d+){2}(-(alpha|beta)(\d+)?)?/

in order for deploy to run on tag pushes.

Also, just a suggestion, I wouldn’t use the cache to move your files through the Workflow. It isn’t the most efficient method. Please see: https://circleci.com/blog/persisting-data-in-workflows-when-to-use-caching-artifacts-and-workspaces/.

Considering they’re all sequential with no differences in which tags or branches they’d run for, you might want to combine checkout, dependencies, build, and test jobs into one.

2 Likes