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
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
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:
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:
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:
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
If you have any questions just let us know!