Last active
July 15, 2019 05:48
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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