Deploy functions
This commit is contained in:
parent
24c057738e
commit
082c39cb2f
@ -1,32 +1,64 @@
|
|||||||
version: 2
|
version: 2
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build_deploy:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:10.4-browsers
|
- image: circleci/node:10.4-browsers
|
||||||
|
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- v1-dependencies-{{ checksum "package.json" }}
|
- v1-dependencies-{{ checksum "package.json" }}
|
||||||
- v1-dependencies-
|
- v1-dependencies-
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Install Dependancies
|
name: Install Dependancies
|
||||||
command: yarn
|
command: yarn
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
paths:
|
key: v1-dependencies-{{ checksum "package.json" }}
|
||||||
- node_modules
|
paths: node_modules
|
||||||
key: v1-dependencies-{{ checksum "package.json" }}
|
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Build
|
name: Build
|
||||||
command: yarn build
|
command: yarn build
|
||||||
|
|
||||||
- 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