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.
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.
It’s been a while, but your suggestion doesn’t work t all. I simplified the config and both build and deploy jobs should run on tags. The build has configuration for filters:
filters:
branches:
only: /./
tags:
only: /./
This allows build job to run on every tag and every branch yet builds are not triggered for any tag. Something seems to be fundamentally broken with tags building.
@LKay I thought I have the same issue but then realized I made a mistake in tag regex.
I believe you have the same problem and missed * after dot .
Try to make it as follows: