Deploy functions

This commit is contained in:
Zakary Timson 2018-07-17 21:20:07 -04:00
parent 24c057738e
commit 082c39cb2f

View File

@ -1,6 +1,6 @@
version: 2
jobs:
build:
build_deploy:
docker:
- image: circleci/node:10.4-browsers
@ -19,9 +19,8 @@ jobs:
command: yarn
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
paths: node_modules
- run:
name: Build
@ -29,4 +28,37 @@ jobs:
- run:
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