Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku CI status badge

Im using Heroku CI to run tests in Heroku Pipeline. I would like to add CI status as badge in the README.md file at Github, for master branch.

But so far, I have not found out-of-box solution on this request. Any tip on workarounds to get this work without building the ci-badge solution myself?

Few inspirations I have found:

  1. https://github.com/heroku/heroku-ci: (see the status badge on top of README.md. However, image URL is specifically searching for pipelines for the Heroku CI application, and doesnt work with other applications)
  2. https://github.com/pussinboots/heroku-badge: displays deploy badges, which is not important for me. Also, this repo/app doesn't seem to be maintained anymore (last commit 2 years ago)
like image 951
Ismar Slomic Avatar asked Jun 18 '18 22:06

Ismar Slomic


1 Answers

I agree that a good Heroku CI badge generator is lacking! Heroku is still running one here, but the linked GitHub repo is unfortunately 404 (and, as you noted, that generator doesn't seem to work with pipelines other than Heroku's own, which makes it not that useful).

In any and all cases, inspired by your question, I went ahead and created a Heroku CI badge app that you can deploy to your Heroku account! Please find it here.

Feel free to open issues / fork it if you want to change anything.

Cheers

like image 102
Greg Sadetsky Avatar answered Nov 07 '22 21:11

Greg Sadetsky