ref: https://circleci.com/docs/2.0/local-cli/
Regarding Orbs, see https://github.com/vsanna/dd_orb
brew install circleci
circleci setup
circleci config validate
circleci orb validate path/to/myorb.yml
circleci local execute --job {jobname}
# namespace create command should be run only once
circleci namespace create vsanna github vsanna
# setup orbs project
circleci orb init
# if you already have orb projects, you can use create instead of init
circleci orb create
circleci orb publish src/@orb.yml vsanna/dd_orb@dev:alpha
circleci orb publich development version
circleci orb publich production version
- change
- validate
- merge
- when merging PR to master, it automatically publishes new version?
- commit msg must have formatted title like
[semver:major] first orb release.
Orb contains commands, jobs and executors. (these three sections are reusable)
SEE:
.
├── CHANGELOG.md
├── LICENSE
├── README.md
└── src
├── @orb.yml
├── README.md
├── commands # 1 command per 1 file
│ ├── README.md
│ └── greet.yml
├── executors # 1 executor per 1 file
│ ├── README.md
│ └── default.yml
├── jobs
│ ├── README.md
│ └── hello.yml
├── scripts
│ ├── README.md
│ └── greet.sh
└── tests
├── README.md
└── greet.bats
https://circleci.com/docs/2.0/creating-orbs/#issue-a-new-release
From alpha branch, open a PR with title like [semver:major] first orb release.