Skip to content

Instantly share code, notes, and snippets.

@hjhart
Last active June 18, 2019 21:57
Show Gist options
  • Save hjhart/d6162db7802021e4d04b10c9b3adf0e4 to your computer and use it in GitHub Desktop.
Save hjhart/d6162db7802021e4d04b10c9b3adf0e4 to your computer and use it in GitHub Desktop.
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