Skip to content

Instantly share code, notes, and snippets.

@aafaque33
Created June 21, 2019 21:25
Show Gist options
  • Save aafaque33/5db799d9d77619671d77b1f3eddc695f to your computer and use it in GitHub Desktop.
Save aafaque33/5db799d9d77619671d77b1f3eddc695f to your computer and use it in GitHub Desktop.
Gitlab anybadge to generate badge
stages:
- build
create_badge_svg:
stage: build
image: python:3.6.6
tags:
- docker
script:
- echo "Python other dependencies installation"
after_script:
- pip install anybadge
- commits=$(git rev-list --all --count)
- anybadge -l commits -v $commits -f commits.svg -c green
artifacts:
paths:
- commits.svg
when: always
expire_in: 4 weeks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment