Last active
June 24, 2019 19:37
-
-
Save Zoramite/d446ebb996f95e93003ebfde397848c0 to your computer and use it in GitHub Desktop.
Example Grow CircleCI Configuration
This file contains hidden or 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: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