Cameron Taggart
Cameron Taggart

Reputation: 6091

How do you trigger a build in Azure Pipelines when a new tag is pushed to github.com?

I asked this on twitter a couple of weeks ago and then spent a few weekend hours on this issue trying to figure it out. I want to trigger a build when a new tag is pushed to github.com. Most other CI services have this capability, but I can't figure out how to enable it for Azure Pipelines. I tried adding a trigger of refs/tags/* in the azure-pipelines.yaml and in the UI where you can override the triggers. Neither has worked for me.

Upvotes: 5

Views: 1456

Answers (1)

Nick Babcock
Nick Babcock

Reputation: 6141

I feel like even though this should be the default, I needed set the triggers to * to get tags (and branches) to build

trigger:
  branches:
    include: ['*']
  tags:
    include: ['*']

Upvotes: 5

Related Questions