Earlier in the year, Heroku announced the general availability of its GitHub integration for automatic deployment to the Heroku platform. In a blog post last month, James Ward outlined his method of deployment with a screencast to showcase how to set it up.
The integration means that branches from a GitHub repo can be configured to automatically deploy to a linked Heroku app on every GitHub push, removing the need to maintain a separate Heroku Git remote. The screencast includes connecting to GitHub, authorising Heroku to access the GitHub repo and enabling auto-deploys to Heroku.
For his apps, Ward uses a full Continuous Delivery pipeline following these steps:
- Push to GitHub
- CI validates the build
- Heroku deploys changes to staging
- Manual testing/validation of staging
- Promote staging to production using Heroku Pipelines