A monorepo of CircleCI orbs built and used by the Stoplight team.
For more information on orbs, check out https://circleci.com/docs/2.0/orb-intro/.
Add the following environment variables to your CircleCI project settings:
SL_ANALYZE_TOKEN
: your project's private analyze tokenSL_API_HOST
: your Stoplight API host (ex.https://api.stoplight.io
)
version: 2.1
orbs:
stoplight: stoplight/[email protected]
workflows:
stoplight-analyze:
jobs:
- stoplight/analyze
Add the following environment variables to your CircleCI project settings:
NPM_TOKEN
: the authToken from your .npmrc (copy from another project)BOT_ACCESS_TOKEN
: the API token of the stoplight-bot Github user (copy from another project)
version: 2.1
orbs:
stoplight: stoplight/[email protected]
jobs:
build:
docker:
- image: circleci/node:10-stretch
steps:
- checkout
- setup_remote_docker:
docker_layer_caching: true
- stoplight/clone_build_scripts
- stoplight/set_npm_token
- stoplight/build_docker:
image_base: quay.io/org/repo
- See CircleCI's Creating Orbs documentation to get started.
- Add your orb to
src/{orbname}/orb.yml
.