Skip to content

Instantly share code, notes, and snippets.

@codebymark
Last active July 15, 2019 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codebymark/63ef8adb163c89c8069beeed83a5d0f5 to your computer and use it in GitHub Desktop.
Save codebymark/63ef8adb163c89c8069beeed83a5d0f5 to your computer and use it in GitHub Desktop.
Circle Ci Sample Config: two jobs, one for a master build (latest) and one for a stable release. Using workflows to add branch filters
version: 2
jobs:
build:
docker:
- image: circleci/node:10.13.0
steps:
- checkout
- run:
name: Install dependencies
command: npm install
- run:
name: Build WBC
command: npm run deploy:wbc
- run:
name: Build STG
command: npm run deploy:stg
- run:
name: Build BOM
command: npm run deploy:bom
- run:
name: Build BSA
command: npm run deploy:bsa
stable:
docker:
- image: circleci/node:10.13.0
steps:
- checkout
- run:
name: Install dependencies
command: npm install
- run:
name: Build WBC (Stable)
command: npm run deploy:wbc-stable
- run:
name: Build STG (Stable)
command: npm run deploy:stg-stable
workflows:
version: 2
master:
jobs:
- build:
filters:
branches:
only: master
stable:
jobs:
- stable:
filters:
branches:
only: stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment