Deploy functions
This commit is contained in:
parent
24c057738e
commit
082c39cb2f
@ -1,6 +1,6 @@
|
|||||||
version: 2
|
version: 2
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build_deploy:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:10.4-browsers
|
- image: circleci/node:10.4-browsers
|
||||||
|
|
||||||
@ -19,9 +19,8 @@ jobs:
|
|||||||
command: yarn
|
command: yarn
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
paths:
|
|
||||||
- node_modules
|
|
||||||
key: v1-dependencies-{{ checksum "package.json" }}
|
key: v1-dependencies-{{ checksum "package.json" }}
|
||||||
|
paths: node_modules
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Build
|
name: Build
|
||||||
@ -29,4 +28,37 @@ jobs:
|
|||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Deploy
|
name: Deploy
|
||||||
command: yarn firebase deploy --token "${FIREBASE_TOKEN}"
|
command: yarn firebase deploy --token "${FIREBASE_TOKEN} --only hosting"
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
docker:
|
||||||
|
- image: circleci/node:10.4-browsers
|
||||||
|
|
||||||
|
working_directory: ~/repo/functions
|
||||||
|
|
||||||
|
stesp:
|
||||||
|
- checkout
|
||||||
|
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- v1-dependencies-{{ checksum "package.json" }}
|
||||||
|
- v1-dependencies-
|
||||||
|
|
||||||
|
- run:
|
||||||
|
name: Install Dependancies
|
||||||
|
command: yarn
|
||||||
|
|
||||||
|
- 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