Commit 4bc3254f authored by BryceLTaylor's avatar BryceLTaylor

circleCI config split build to -staging and -production. add env variables.

parent 534c60bf
...@@ -83,8 +83,28 @@ aliases: ...@@ -83,8 +83,28 @@ aliases:
- v1-build- - v1-build-
jobs: jobs:
build: build-staging:
<<: *defaults <<: *defaults
environment:
<<: *environment
<<: *env_staging
steps:
- *restore_git_cache
- checkout
- *restore_npm_cache
- run:
name: "Run npm test to build"
command: |
npm --production=false ci
npm run test
- *save_npm_cache
- *save_git_cache
- *save_build_cache
build-production:
<<: *defaults
environment:
<<: *environment
# <<: *env_production
steps: steps:
- *restore_git_cache - *restore_git_cache
- checkout - checkout
...@@ -162,21 +182,24 @@ jobs: ...@@ -162,21 +182,24 @@ jobs:
workflows: workflows:
build-test-deploy: build-test-deploy:
jobs: jobs:
- build: - build-staging:
filters: filters:
branches: branches:
only: only:
- circleci-project-setup # remove this before releasing - circleci-project-setup # remove this before releasing
- develop
- /^hotfix\/.*/
- /^release\/.*/
- deploy-staging: - deploy-staging:
requires: requires:
- build - build-staging
filters: filters:
branches: branches:
only: only:
- circleci-project-setup # remove this before releasing - circleci-project-setup # remove this before releasing
- develop - develop
- hotfix/* # make sure this syntax works. may need a regex - /^hotfix\/.*/ # make sure this syntax works. may need a regex
- release/* - /^release\/.*/
- integration-staging: - integration-staging:
requires: requires:
- deploy-staging - deploy-staging
...@@ -185,5 +208,5 @@ workflows: ...@@ -185,5 +208,5 @@ workflows:
only: only:
- circleci-project-setup # remove this before releasing - circleci-project-setup # remove this before releasing
- develop - develop
- hotfix/* - /^hotfix\/.*/
- release/* - /^release\/.*/
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment