Skip to content

Instantly share code, notes, and snippets.

@Zoramite
Last active June 24, 2019 19:37
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 Zoramite/d446ebb996f95e93003ebfde397848c0 to your computer and use it in GitHub Desktop.
Save Zoramite/d446ebb996f95e93003ebfde397848c0 to your computer and use it in GitHub Desktop.
Example Grow CircleCI Configuration
version: 2
jobs:
build:
working_directory: ~/grow
docker:
- image: grow/base:latest
steps:
- checkout
- restore_cache:
keys:
- &cache_key grow-cache-{{ .Branch }}-{{ checksum "package.json" }}-{{ checksum "extensions.txt" }}
- run:
name: Grow Install
command: grow install
- save_cache:
key: *cache_key
paths:
- extensions
- node_modules
- run:
name: Test Build
command: grow build
- run:
name: Deploy to Prod
command: |
if [ "$CIRCLE_BRANCH" == "master" ] && [ "$CIRCLE_PULL_REQUEST" == "" ] ; then
grow deploy --noconfirm grow.io ;
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment