Is there a way to force the builds only on certain branches, but in the application, for example, suppose I have the next config.yml
:
version: 2
jobs:
build:
machine: true
working_directory: ~/api
branches:
only:
- master
steps:
- checkout
- deploy:
command: then bash ./bin_deploy/scripts_circle/deploy_production.sh;
My question is how do I protect the deploy to production, if someone changes the code to:
version: 2
jobs:
build:
machine: true
working_directory: ~/api
branches:
only:
- fake_master_merged
steps:
- checkout
- deploy:
command: then bash ./bin_deploy/scripts_circle/deploy_production.sh;
It will deploy to production, is there a way to force only the master builds in the app, or even to create the environment variables per branch?
Thanks in advance