Kinda minimal CI demonstration for getting badges on your project page.
- Clone the repo
- Create new Github/GitLab repo page
- Change padge urls in readme.md to refer to your repo
- push the modified repo to Github
- When you go to the project page, you will have a badge. Cool points achieved.
See it in its full glory at Github.
Check .github/workflows/main.yml
file which contains workflow definition
for workflow that is run every time new push is made to the repo.
In the case of this repo, docker image is build and the image is run. If the container does not return error code, build badge is green, otherwise red (fail).
You can see actions which have been run in the actions tab of your repo page.
See Github documentation for more information about GitHub actions.
See it in its full glory at GitLab.
Check .gitlab-ci.yml
.
You can see pipelines which have been run in the pipelines tab/row of your repo page.
See GitLab documentation about pipelines.
Also check out GitLabs docs about Docker.
You might be interested in checking shields.io. You can search for different badges and then click them to get preview of that badge of your repo.