Add multiple orbs in a single project
complete
M
Manish Khadka
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.1orbs: build_orb: demo_namespace/only_build_orb@dev:0.0.1 deploy_orb: demo_namespace/only_deploy_orb@dev:0.0.2workflows:main: jobs: - build_orb/build_job - deploy_orb/deploy_job
only_build_orb.yml
version: 2.1executors: docker: - image: alpine:latestjobs: build_job: executor: default steps: - run: echo "This is a build job only"workflows: main: jobs: - build_job
only_deploy_orb.yml
version: 2.1executors: docker: - image: alpine:latestjobs: deploy_job: executor: default steps: - run: echo "This is a deploy job only"workflows: main: jobs: - deploy_job
CCI-I-1177
K
Kyle Tryon
Hello all,Multiple orbs have always been possible 👍. In fact, if you wish you can even use orbs inside other orbs!We have recently updated our "using orbs" documentation: https://circleci.com/docs/2.0/orb-intro/#using-orbsFor an example of using more than one orb in a single config, here is a sample of how to deploy a NodeJS application using both the Node orb, and the Heroku orb.https://circleci.com/orbs/registry/orb/circleci/node#usage-node_test_and_deployPlease contact support with any potential issues experienced while using orbs.