Tweaking CI config
Trying out Contexts
This commit is contained in:
parent
a3d6717786
commit
189dfe29f2
@ -1,6 +1,6 @@
|
|||||||
version: 2
|
version: 2
|
||||||
jobs:
|
jobs:
|
||||||
build_preview:
|
build_deploy:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:7.10
|
- image: circleci/node:7.10
|
||||||
|
|
||||||
@ -25,57 +25,30 @@ jobs:
|
|||||||
|
|
||||||
- run: yarn test
|
- run: yarn test
|
||||||
|
|
||||||
- run:
|
- run: |
|
||||||
command: yarn build
|
echo $GA_PROPERTY
|
||||||
environment:
|
echo $SENTRY_KEY
|
||||||
GA_PROPERTY: "UA-37364632-2"
|
yarn build
|
||||||
SENTRY_KEY: "https://37efcfdc7c6d4f0d942497c4dd609254@sentry.io/197339"
|
|
||||||
|
|
||||||
# TODO: Deploy to preview.regexper.com
|
# TODO: Deploy to preview.regexper.com
|
||||||
build_prod:
|
|
||||||
docker:
|
|
||||||
- image: circleci/node:7.10
|
|
||||||
|
|
||||||
working_directory: ~/repo
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
|
|
||||||
# Download and cache dependencies
|
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- v1-dependencies-{{ checksum "package.json" }}
|
|
||||||
# fallback to using the latest cache if no exact match is found
|
|
||||||
- v1-dependencies-
|
|
||||||
|
|
||||||
- run: yarn install
|
|
||||||
|
|
||||||
- save_cache:
|
|
||||||
paths:
|
|
||||||
- node_modules
|
|
||||||
key: v1-dependencies-{{ checksum "package.json" }}
|
|
||||||
|
|
||||||
- run: yarn test
|
|
||||||
|
|
||||||
- run:
|
|
||||||
command: yarn build
|
|
||||||
environment:
|
|
||||||
GA_PROPERTY: "UA-37364632-1"
|
|
||||||
SENTRY_KEY: "https://37efcfdc7c6d4f0d942497c4dd609254@sentry.io/197339"
|
|
||||||
|
|
||||||
# TODO: Deploy to regexper.com
|
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build_deploy_preview:
|
preview:
|
||||||
jobs:
|
jobs:
|
||||||
- build_preview:
|
- build_preview:
|
||||||
|
context: preview-context
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
ignore: /.*/
|
ignore: /.*/
|
||||||
build_deploy_prod:
|
branches:
|
||||||
|
only: /.*/
|
||||||
|
prod:
|
||||||
jobs:
|
jobs:
|
||||||
- build_prod:
|
- build_prod:
|
||||||
|
context: prod-context
|
||||||
filters:
|
filters:
|
||||||
tags:
|
tags:
|
||||||
only: /.*/
|
only: /.*/
|
||||||
|
branches:
|
||||||
|
ignore: /.*/
|
||||||
|
Loading…
Reference in New Issue
Block a user