Working in redefining the config.yml to use feature branches for a dev environment to be executed when is needed.
We have a general config.yml with all the tests and so on for the repository, but we would like to add cases for feature branches and to be executed when we need them, but don’t know how to trigger those when we need them. The reason is that those feature branches would have all the check tests but also would do a deployment for a specific feature indicated using Terraform. Any ideas how to trigger this in a controlled way?
I saw the following information, but just is a filter if it is a feature branch, but not sure how to trigger it when we want it.
The idea would be to do the deployment from Circle CI, would this mean to use the “circleci” command or we could do it from the circleci web interface? (2 questions in one post )
workflows:
build-deploy:
jobs:
- js_build
- build_server_pdfs: # << the job to conditionally run based on the filter-by-branch-name.
filters:
branches:
only: /server\/.*/