Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get builds badge image from Gitlab CI

I would like to get the build badge image on my project from Gitlab CI. I know the url (documentation) :

http://example.gitlab.com/namespace/project/badges/branch/build.svg

But my project is a private project, and the link require authentification and I don't know how to be authenticated with this url. Thank you for your help.

like image 943
Thlbaut Avatar asked Nov 08 '22 17:11

Thlbaut


1 Answers

Your project/repository's README.md should be able to show your badge as it's already in an authenticated session with your/the Gitlab server. If your trying to show the badge on a different, non-Gitlab page on the same server, you could symlink the build.svg to a location in your www root and ensure that your other webserver to follow symlinks.

like image 112
chirality Avatar answered Dec 04 '22 14:12

chirality