How to add more labels to docker-based Gitea act_runner
In our previous post How to setup Gitea Runner in 5 minutes using docker-compose we showed an easy way of how to setup a Gitea runner using Docker.
In order to add additional labels, you need to edit data/.runner
and add the labels to "labels"
. I recommend to leave the existing labels as they are, and just add your new labels.
Remember to fix the commata at the end of the lines, so that the JSON is still valid.
In the following example, we’ve added a Hugo image: hugo:docker://hugomods/hugo:latest
:
{
"...": "...,
"labels": [
"ubuntu-latest:docker://gitea/runner-images:ubuntu-latest",
"ubuntu-22.04:docker://gitea/runner-images:ubuntu-22.04",
"ubuntu-20.04:docker://gitea/runner-images:ubuntu-20.04",
"hugo:docker://hugomods/hugo:latest"
]
}
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow