Feature Branches Execution

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 :slight_smile: )

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\/.*/

The normal way would just be to define a list of jobs, each of which has a filter that accepts one of the branch names you have defined.

workflows:
  buildcontainer:
    jobs:

     - build-runner-latest-from-branch:
          domain: "value1"
          filters:
            branches:
              only:
                - ci-demo

      - build-runner-latest-from-branch:
          domain: "value2"
          filters:
            branches:
              only:
                - ci-dev
                
      - build-runner-latest-from-branch:
          domain: "value3"
          filters:
            branches:
              only:
                - ci-dev1

In the example above the command ‘build-runner-latest-from-branch’ is passed a different value to the parameter ‘domain’ based on which branch caused the workflow the start.