# Trigger Pipelines on Tag

**URL:** <https://forum.buildkite.community/t/trigger-pipelines-on-tag/1778>\
**Category:** General\
**Created:** [November 5, 2021, 6:41pm UTC](https://forum.buildkite.community/t/trigger-pipelines-on-tag/1778 "2021-11-05T18:41:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alec.holmes](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/alec.holmes/32/1514_2.png) [@alec.holmes](https://forum.buildkite.community/u/alec.holmes)\
**Post date:** [November 5, 2021, 6:41pm UTC](https://forum.buildkite.community/t/trigger-pipelines-on-tag/1778/1 "2021-11-05T18:41:22Z")

</div>

Afternoon!

I’ve been working on getting some buildkite pipelines setup for a few internal projects we have at [Greymatter.io](http://Greymatter.io). I’ve been reading the docs quite thoroughly and have stumbled across something I think I need some clarification on.

We have 2 main pipelines right now, a release and build. The build is quite simple we just run that every commit, but the release should happen on merges to MAIN and on Tags. As far as I’ve seen it looks like you can only trigger pipelines and steps off a given branch and a few other fields, but not Tags. Is this correct? If so I would imagine that I’ve either missed something critical in the docs are this is a feature many would like.

Thanks for the help in advance!

---

<div class="post-metadata">

**Author:** ![paula](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/paula/32/954_2.png) [@paula](https://forum.buildkite.community/u/paula)\
**Post date:** [November 6, 2021, 6:34am UTC](https://forum.buildkite.community/t/trigger-pipelines-on-tag/1778/2 "2021-11-06T06:34:52Z")

</div>

Hi @alec.holmes! 👋

Welcome to the community! 😊

Triggering a release from a tag against `main` is a pretty common practice, and it’s possible now to build on branches, tags, or both 🙂  
You can set it up from your repository settings page where you can find a setting called “Build tags”. You can read more about the functionality here: [Build only branches, tags, or both](https://buildkite.com/changelog/116-build-only-branches-tags-or-both)

You can also have more control over on which tag trigger a build using [Conditionals](https://buildkite.com/docs/pipelines/conditionals#conditionals-in-pipelines) on the pipeline with the supported variable `build.tag`.

Hope this helps!

Cheers

---

<div class="post-metadata">

**Author:** ![ven](https://avatars.discourse-cdn.com/v4/letter/v/f9ae1b/32.png) [@ven](https://forum.buildkite.community/u/ven)\
**Post date:** [November 20, 2021, 4:05am UTC](https://forum.buildkite.community/t/trigger-pipelines-on-tag/1778/3 "2021-11-20T04:05:19Z")

</div>

I did a release and then realized this setting wasn’t turned on.

Is there a way to retrigger the same build now?

[I released a new tag]

---

<div class="post-metadata">

**Author:** ![paula](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/paula/32/954_2.png) [@paula](https://forum.buildkite.community/u/paula)\
**Post date:** [November 22, 2021, 6:52pm UTC](https://forum.buildkite.community/t/trigger-pipelines-on-tag/1778/4 "2021-11-22T18:52:02Z")

</div>

Hi @ven!

Hmm 🤔, I’m not so sure, but you could try to Redeliver the payload (you’ll need admin permissions).

Best!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/system/32/1321_2.png) [@system](https://forum.buildkite.community/u/system)\
**Post date:** [September 4, 2024, 6:27pm UTC](https://forum.buildkite.community/t/trigger-pipelines-on-tag/1778/5 "2024-09-04T18:27:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
