Flask-based API that generates dynamic SVG badges showing the status of a GitLab CI/CD job.
1.4K
A lightweight Flask-based API that generates dynamic SVG badges showing the status of a GitLab CI/CD job.
Badge endpoint:
GET /badge?projectid=12345&branch=main&job=test
Embed in markdown:

Badge is fully clickable and will redirect to the GitLab job.
docker run -p 5000:5000 --env-file .env yourusername/gitlab-badge-api
Create a .env file with your GitLab access info:
GITLAB_API_URL=https://gitlab.com/api/v4
GITLAB_ACCESS_TOKEN=your_gitlab_token
Then visit:
http://localhost:5000/badge?projectid=12345&branch=main&job=test
The GitLab token requires read_api access. You can use a Personal Access Token or Project Access Token.
MIT
Content type
Image
Digest
sha256:b5bffce78…
Size
48.1 MB
Last updated
over 1 year ago
docker pull mrfenyx/gitlab-badge-api