# Build configuration per workflow

**URL:** <https://discuss.bitrise.io/t/build-configuration-per-workflow/815>\
**Category:** Question & Answer\
**Tags:** build-config, workflow\
**Created:** [February 16, 2017, 9:53am UTC](https://discuss.bitrise.io/t/build-configuration-per-workflow/815 "2017-02-16T09:53:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick.briscoe](https://avatars.discourse-cdn.com/v4/letter/n/eada6e/32.png) [@nick.briscoe](https://discuss.bitrise.io/u/nick.briscoe)\
**Post date:** [February 16, 2017, 9:53am UTC](https://discuss.bitrise.io/t/build-configuration-per-workflow/815/1 "2017-02-16T09:53:17Z")

</div>

Hi there! I’m looking for a way to select the build configuration based on which workflow is being executed, I looked through your FAQ but I couldn’t see anything 😊

e.g.  
master = Release  
release = Release  
develop = Test  
features = Debug

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [February 16, 2017, 10:29am UTC](https://discuss.bitrise.io/t/build-configuration-per-workflow/815/2 "2017-02-16T10:29:15Z")

</div>

Hi @nick.briscoe,

Thanks for asking this here! 😉

It’s actually pretty simple to do, using multiple workflows and either Workflow Env Vars or specifying the parameter directly for the step.

All you have to do is:

1. **Create a workflow for every configuration** which should have different configuration(s) (master, release, develop, …)
2. Set the right configuration for every workflow, e.g. select the `develop` one, and **set the configuration** (or any other parameter in any step) to the one you want to. Example if you use e.g. the Xcode Archive step and want to specify a configuration there:
  1. Select the related workflow
  2. Select the related step (Xcode Archive in this case)
  3. Select the related input/option (in case of Xcode Archive it’s the _Configuration name_ option
  4. Set the value/configuration you want to

3. And the last step is to **specify which workflow to use when** , using the **Triggers** / Trigger Map feature (related docs: [http://devcenter.bitrise.io/webhooks/trigger-map/](http://devcenter.bitrise.io/webhooks/trigger-map/)).

E.g. run run the “deploy” workflow for every code push on `master`, and run the “primary” workflow for code push on any other branch and for pull requests:

```auto
trigger_map:
- push_branch: "master"
  workflow: deploy
- push_branch: "*"
  workflow: primary
- pull_request_target_branch: "*"
  workflow: primary

```

Source: [http://devcenter.bitrise.io/webhooks/trigger-map/#a-very-simple-two-workflow-cicd-setup](http://devcenter.bitrise.io/webhooks/trigger-map/#a-very-simple-two-workflow-cicd-setup)

If you have any questions just let us know! 🙂
