Created
June 21, 2019 21:25
-
-
Save aafaque33/5db799d9d77619671d77b1f3eddc695f to your computer and use it in GitHub Desktop.
Gitlab anybadge to generate badge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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