Skip to content

Instantly share code, notes, and snippets.

@hiro08gh
Created February 3, 2020 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiro08gh/935f138ebc9e4570cb0a59cc97858f8f to your computer and use it in GitHub Desktop.
Save hiro08gh/935f138ebc9e4570cb0a59cc97858f8f to your computer and use it in GitHub Desktop.
Fireabase + react-snapでCricle CIを回す設定
version: 2
jobs:
build:
docker:
- image: circleci/node:10.13-browsers
working_directory: ~/repo
steps:
- checkout
- run:
name: install chrom
command: |
sudo apt install libappindicator3-1
curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome.deb
sudo sed -i 's|HERE/chrome\"|HERE/chrome\" --disable-setuid-sandbox|g' /opt/google/chrome/google-chrome
rm google-chrome.deb
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: yarn install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run:
name: build
command: yarn run build
- run:
name: deploy firebase hostring
command: ./node_modules/.bin/firebase deploy --token=$FIREBASE_TOKEN
workflows:
version: 2
deploy:
jobs:
- build:
filters:
branches:
only:
- master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment