github.com/manicqin/nomad@v0.9.5/.circleci/config/jobs/build-website.yml (about) 1 # setting the working_directory along with the checkout path allows us to not have 2 # to cd into the website/ directory for commands 3 working_directory: ~/project/website 4 docker: 5 - image: hashicorp/middleman-hashicorp:0.3.35 6 steps: 7 - checkout: 8 path: ~/project 9 10 # restores gem cache 11 - restore_cache: 12 key: static-site-gems-v1-{{ checksum "Gemfile.lock" }} 13 14 - run: 15 name: install gems 16 command: bundle check || bundle install --path vendor/bundle --retry=3 17 18 # saves gem cache if we have changed the Gemfile 19 - save_cache: 20 key: static-site-gems-v1-{{ checksum "Gemfile.lock" }} 21 paths: 22 - ~/project/website/vendor/bundle 23 24 - run: 25 name: middleman build 26 command: bundle exec middleman build 27 28 - run: 29 name: website deploy 30 command: ./scripts/deploy.sh