Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 570
Cameron Taggart Avatar asked Oct 02 '18 19:10

Cameron Taggart


People also ask

Can GitHub actions trigger the azure pipeline?

GitHub Action to trigger a run in Azure pipelinesWith this action, you could trigger an Azure pipeline run right from inside an Action workflow. The definition of this Github Action is in action. yml.

How do you trigger Azure DevOps pipeline?

When you have installed the extension, you can start by altering a pipeline from where you want to trigger a different pipeline. Add a new task to the pipeline by clicking in “+” icon. In the task window search for “Trigger” and select the task “Trigger Azure DevOps pipeline”.

How do you trigger build on PR Azure DevOps?

You can set up pull request triggers for both Azure Repos or GitHub repositories. From within your project, Select Pipelines > Releases, and then select your release pipeline. Under the Pull request trigger section, select the toggle button to enable it.


1 Answers

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: ['*']
like image 165
Nick Babcock Avatar answered Sep 30 '22 11:09

Nick Babcock