CircleCI Ideas

Add multiple orbs in a single project

This will help reduce size of codes into smaller format in each orbs. The orbs can be created as functional structure based on job performance and help understand the code much easier. Further the enhancement will allow to name orbs based on the job specification only.

config.yml

version: 2.1
orbs:
  build_orb: demo_namespace/only_build_orb@dev:0.0.1
  deploy_orb: demo_namespace/only_deploy_orb@dev:0.0.2

workflows:
main:
  jobs:
    - build_orb/build_job
    - deploy_orb/deploy_job

only_build_orb.yml

version: 2.1
executors:
   docker:
       - image: alpine:latest
jobs:
  build_job:
     executor: default
      steps:
         - run: echo "This is a build job only"
workflows:
   main:
       jobs:
          - build_job

only_deploy_orb.yml

version: 2.1
executors:
   docker:
       - image: alpine:latest
jobs:
  deploy_job:
     executor: default
      steps:
         - run: echo "This is a deploy job only"
workflows:
   main:
       jobs:
          - deploy_job
  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Sep 25 2019
  • New
  • Attach files