# Multiple deployments from the same repo to create multiple endpoints

**URL:** <https://forum.buildkite.community/t/multiple-deployments-from-the-same-repo-to-create-multiple-endpoints/1693>\
**Category:** General\
**Created:** [August 20, 2021, 7:37am UTC](https://forum.buildkite.community/t/multiple-deployments-from-the-same-repo-to-create-multiple-endpoints/1693 "2021-08-20T07:37:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alkavi15](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@alkavi15](https://forum.buildkite.community/u/alkavi15)\
**Post date:** [August 20, 2021, 7:37am UTC](https://forum.buildkite.community/t/multiple-deployments-from-the-same-repo-to-create-multiple-endpoints/1693/1 "2021-08-20T07:37:30Z")

</div>

We have a NodeJS based project that uses Buildkite for its deployment (let’s say it’s serviceA). What we would like to do is deploy the same code to a different endpoint (say serviceB) using a different config.

Is this possible using Buildkite? Can I update deploy\_pipeline.yml and do 2 deployments? Is there any other way this can be achieved?

Thanks 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:** [August 20, 2021, 8:02pm UTC](https://forum.buildkite.community/t/multiple-deployments-from-the-same-repo-to-create-multiple-endpoints/1693/2 "2021-08-20T20:02:48Z")

</div>

Hi @alkavi15!

Welcome to the community! 😊  
It’s good practice to use separate pipelines for deployments (painless rollbacks). You can read more about it here [Deployments with Buildkite | Buildkite Documentation](https://buildkite.com/docs/deployments#dedicated-deployment-pipelines).  
Even if you have different pipelines you can use the same yml with different config.

Hope this helps!

Cheers,

---

<div class="post-metadata">

**Author:** ![alkavi15](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@alkavi15](https://forum.buildkite.community/u/alkavi15)\
**Post date:** [August 23, 2021, 9:40pm UTC](https://forum.buildkite.community/t/multiple-deployments-from-the-same-repo-to-create-multiple-endpoints/1693/3 "2021-08-23T21:40:34Z")

</div>

Hi @paula, thanks a lot for your response and pointer to the `pipelines for deployments` in Buildkite.

We are evaluating this option and few others and will finalize one. Thanks again!

---

<div class="post-metadata">

**Author:** ![alkavi15](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@alkavi15](https://forum.buildkite.community/u/alkavi15)\
**Post date:** [September 9, 2021, 12:15am UTC](https://forum.buildkite.community/t/multiple-deployments-from-the-same-repo-to-create-multiple-endpoints/1693/4 "2021-09-09T00:15:21Z")

</div>

Hi @paula, would be great if you could provide some additional clarifications regarding how we can use the same yml with different config.

Thanks!
