Deploy functions
This commit is contained in:
parent
24c057738e
commit
082c39cb2f
@ -1,32 +1,64 @@
|
||||
version: 2
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
- image: circleci/node:10.4-browsers
|
||||
build_deploy:
|
||||
docker:
|
||||
- image: circleci/node:10.4-browsers
|
||||
|
||||
working_directory: ~/repo
|
||||
working_directory: ~/repo
|
||||
|
||||
steps:
|
||||
- checkout
|
||||
steps:
|
||||
- checkout
|
||||
|
||||
- restore_cache:
|
||||
keys:
|
||||
- v1-dependencies-{{ checksum "package.json" }}
|
||||
- v1-dependencies-
|
||||
- restore_cache:
|
||||
keys:
|
||||
- v1-dependencies-{{ checksum "package.json" }}
|
||||
- v1-dependencies-
|
||||
|
||||
- run:
|
||||
name: Install Dependancies
|
||||
command: yarn
|
||||
- run:
|
||||
name: Install Dependancies
|
||||
command: yarn
|
||||
|
||||
- save_cache:
|
||||
paths:
|
||||
- node_modules
|
||||
key: v1-dependencies-{{ checksum "package.json" }}
|
||||
- save_cache:
|
||||
key: v1-dependencies-{{ checksum "package.json" }}
|
||||
paths: node_modules
|
||||
|
||||
- run:
|
||||
name: Build
|
||||
command: yarn build
|
||||
|
||||
- run:
|
||||
name: Deploy
|
||||
command: yarn firebase deploy --token "${FIREBASE_TOKEN} --only hosting"
|
||||
|
||||
deploy:
|
||||
docker:
|
||||
- image: circleci/node:10.4-browsers
|
||||
|
||||
working_directory: ~/repo/functions
|
||||
|
||||
stesp:
|
||||
- checkout
|
||||
|
||||
- run:
|
||||
name: Build
|
||||
command: yarn build
|
||||
- restore_cache:
|
||||
keys:
|
||||
- v1-dependencies-{{ checksum "package.json" }}
|
||||
- v1-dependencies-
|
||||
|
||||
- run:
|
||||
name: Install Dependancies
|
||||
command: yarn
|
||||
|
||||
- run:
|
||||
name: Deploy
|
||||
command: yarn firebase deploy --token "${FIREBASE_TOKEN}"
|
||||
- save_cache:
|
||||
key: v1-dependencies-{{ checksum "package.json" }}
|
||||
paths: node_modules
|
||||
|
||||
- run:
|
||||
name: Deploy
|
||||
command: yarn firebase deploy --token "${FIREBASE_TOKEN}" --only functions
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
build_and_deply:
|
||||
jobs:
|
||||
- build_deploy
|
||||
- deploy_functions
|
||||
|
Loading…
Reference in New Issue
Block a user