Gitlab CI using Badges for each job

前端 未结 4 1789
Happy的楠姐
Happy的楠姐 2021-01-31 05:41

Let\'s say I have configured multiple jobs for a project like following:

build_win32:
  script: ...

build_ios:
  script: ...

unit_tests:
  script: ...

server_         


        
4条回答
  •  再見小時候
    2021-01-31 06:16

    You can follow the steps of JGC, but instead of deploying the badge on the public directory of a Gitlab page, you can directly link to the latest build artefact.

    For instance, the following URL links to a pylint badge created with anybadge and uploaded as artifact.

    https://gitlabserver/namespace/project/-/jobs/artifacts/master/raw/public/pylint.svg?job=test

提交回复
热议问题