Skip to content

Instantly share code, notes, and snippets.

@npiper
Last active April 25, 2018 22:06
Show Gist options
  • Save npiper/912e6422e470bb028c58adbfeb1bd23b to your computer and use it in GitHub Desktop.
Save npiper/912e6422e470bb028c58adbfeb1bd23b to your computer and use it in GitHub Desktop.
Building a CI/CD pipeline with Github, Travis-CI and Heroku

Upgrade Ruby on Mac

Install / Upgrade Jekyll

Didn't work on OS/X for ruby v.2.4.1 had to link puma and re-install jekyll

gem install puma -v '3.4.0' -- --with-opt-dir=/usr/local/opt/openssl

Then.. Rake couldn't build default task - update the Rakefile

Install Travis-ci CLI

Install Heroku CLI

Install Jekyll

https://jekyllrb.com/docs/installation/#macOS

Create Github / Jekyll Project

https://github.com/npiper/neilpiper.blog

Encrypt the Heroku API Key

Check in .travis.yml with the new API Key

Import the Github project on travis-ci

Build & Deploy

References

Upgrade MacOS Ruby http://codingpad.maryspad.com/2017/04/29/update-mac-os-x-to-the-current-version-of-ruby/

Jekyll https://jekyllrb.com/docs/installation/

Travis-CI Heroku https://docs.travis-ci.com/user/deployment/heroku/#Running-Commands

Heroku CLI: https://devcenter.heroku.com/articles/heroku-cli

Travis-CI Command line https://github.com/travis-ci/travis.rb#general-api-commands

ruby v2.4.1 puma issues puma/puma#783

https://coderwall.com/p/sdxxaa/travis-ci-don-t-know-how-to-build-task-default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment