It's like a very tiny shields.io (without website) for your private GitLab instance…
10K+
This server acts like a very tiny shields.io to generate SVG badges for your private GitLab instance. Uses shield.io's gh-badges to generate them.
You'll need node.js to run this.
git clone https://github.com/sebbo2002/gitlab-badges.git
cd ./gitlab-badges
npm install
GITLAB_URL=https://gitlab.example.com GITLAB_TOKEN=**** npm start
You can also use the docker container to run this script:
docker run -e GITLAB_URL=https://gitlab.example.com -e GITLAB_TOKEN=**** sebbo2002/gitlab-badges
Use environment variables to set login credentials and pushover tokens:
| GITLAB_URL | GitLab URL (https://gitlab.example.com) |
| GITLAB_TOKEN | A private Token which is used to query the GitLab API |
| PORT | Port to listen to, default to 8888 |
| BADGE_STYLE | Optional, allows to specify the used [badge style](http://shields.io/#styles) |
| MAX_CACHE_SIZE | Optional, to setup the living cache size, defaults to 50 |
GITLAB_URL=https://gitlab.example.com \
GITLAB_TOKEN=******************** \
BADGE_STYLE=flat-square \
npm start
docker run --rm \
-p 8888 \
-e 'GITLAB_URL=https://gitlab.example.com' \
-e 'GITLAB_TOKEN=********************' \
-e 'BADGE_STYLE=flat-square' \
sebbo2002/gitlab-badges
/:projectId/:branch/buildGenerates a badge with the current build state of the latest commit in the given branch. You'll find your project's ID in the GitLab project settings.
https://gitlab-badges.example.com/1337/master/build
/:projectId/:branch/coverageGenerates a badge with the current build coverage of the latest commit in the given branch. You'll find your project's ID in the GitLab project settings.
https://gitlab-badges.example.com/1337/master/coverage
/cacheReturns all currently cached data as a JSON object.
/pingReturns pong. Usually helpful to monitor the server in a very basic way.
Content type
Image
Digest
sha256:f9f3409f2…
Size
57.5 MB
Last updated
4 days ago
docker pull sebbo2002/gitlab-badges:next