Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
grow.dev/.circleci/config.yml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
55 lines (46 sloc)
1.19 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2 | |
jobs: | |
build: | |
working_directory: ~/grow | |
docker: | |
- image: grow/base:master | |
steps: | |
- checkout | |
- restore_cache: | |
keys: | |
- &cache_key grow-cache-{{ .Branch }}-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }} | |
- run: | |
name: Grow Install | |
command: grow install | |
- save_cache: | |
key: *cache_key | |
paths: | |
- node_modules | |
- run: | |
name: Grow Build | |
command: grow build --deployment grow.io | |
- run: | |
name: Deploy to Prod | |
command: if [ "$CIRCLE_BRANCH" == "master" ] && [ "$CIRCLE_PULL_REQUEST" == "" ] ; then grow deploy --noconfirm grow.io && grow deploy --noconfirm grow.dev; fi | |
- persist_to_workspace: | |
root: ~/grow | |
paths: | |
- build/* | |
snapshot: | |
working_directory: ~/grow | |
docker: | |
- image: zoramite/percy-base:latest | |
steps: | |
- attach_workspace: | |
at: ~/grow | |
- run: | |
name: Percy Snapshots | |
command: percy snapshot --widths "412,1280" --enable_javascript build/ | |
workflows: | |
version: 2 | |
build: | |
jobs: | |
- build | |
- snapshot: | |
requires: | |
- build |