Add heroku example
Problem to solve
Provide a guideline/best practice on how to deploy to Heroku using GitLab CI/CD
Further details
We do not provide any guidelines on how to deploy something using Heroku, which can lead to some users not using best practice when using our CI. This was evident in https://forum.gitlab.com/t/src-refspec-master-does-not-match-any we broke users scripts on a feature that we did not indent to have (it was always a side effect). We will most likely not fix this on the runner side since it's cause some performance regressions that we are not willing to accept, more detail in gitlab-runner!1283 (merged)
Proposal
Create a new guide in https://docs.gitlab.com/ee/ci/examples/README.html now how to deploy some application using Heroku. Specify how to deploy to master branch like it's suggested here.
Who can address the issue
- Someone from the ~Verify team
Other links/references
- This was discussed in gitlab-runner#4097 (comment 156508723)