Last active
June 18, 2019 21:57
-
-
Save hjhart/d6162db7802021e4d04b10c9b3adf0e4 to your computer and use it in GitHub Desktop.
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
bundle_install: | |
description: Bundle Install | |
steps: | |
- run: | |
name: Expire cache key every month | |
command: date '+%Y %m' > ~/voom/dependency_checksum | |
- restore_cache: | |
keys: | |
- v1-bundle-{{ arch }}-{{ checksum "~/voom/dependency_checksum" }}-{{ checksum "~/voom/Gemfile.lock" }} | |
- v1-bundle-{{ arch }}-{{ checksum "~/voom/dependency_checksum" }} | |
- v1-bundle-{{ arch }}- | |
- run: | |
name: Install Bundler | |
command: gem install bundler -v 1.17.3 | |
- run: | |
name: Bundle Install | |
command: cd ~/voom/; bundle check || bundle install --frozen --without production --without staging | |
- save_cache: | |
key: v1-bundle-{{ arch }}-{{ checksum "~/voom/dependency_checksum" }}-{{ checksum "~/voom/Gemfile.lock" }} | |
paths: | |
- ~/voom/vendor/bundle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment