Only build when a new tag is created

I've found info on how to trigger a build when a tag is created.

  1. Create a VCS root to use only for tags.
  2. Add branch specification `+:refs/tags/*`.
  3. Turn on `Enable to use tags in the branch specification`.
  4. Add parameter `teamcity.vcsTrigger.runBuildInNewEmptyBranch=true`.

Is there way to limit the build to only run when a new tag is created? I'm creating a docker image and pushing it to a docker repository and only want to do it when a new version is tagged.

3

Please sign in to leave a comment.