add runner to gitea
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 11s

This commit is contained in:
2024-11-26 09:50:59 -05:00
parent 229ba2195e
commit fc96c76b49
2 changed files with 45 additions and 0 deletions

View File

@@ -1,5 +1,11 @@
# Gitea
- [Gitea](#gitea)
- [Staging](#staging)
- [Install](#install)
- [Backup and Restore](#backup-and-restore)
- [Gitea Runners](#gitea-runners)
Gitea provides a helm chart [here](https://gitea.com/gitea/helm-chart/). We're not
going to modify much, but we are going to solidify some of the default values in case
they decide to change things. This is the first chart (besides ingress-nginx) where
@@ -67,3 +73,23 @@ kubectl exec -it -n gitea gitea-postgresql-0 -- \
# Restore gitea to 1 pod
kubectl scale statefulset gitea --replicas 1
```
## Gitea Runners
<https://docs.gitea.com/next/usage/actions/act-runner/#install-with-the-docker-image>
```bash
touch config.yaml
docker run \
-v $PWD/config.yaml:/config.yaml \
-v $PWD/data:/data \
-v /var/run/docker.sock:/var/run/docker.sock \
-e CONFIG_FILE=/config.yaml \
-e GITEA_INSTANCE_URL=https://gitea.reeseapps.com \
-e GITEA_RUNNER_REGISTRATION_TOKEN=m8ZJGE5yEys6oC0trni1o2CkKrmufTnI7dxXZfIi \
-e GITEA_RUNNER_NAME=kube_runner \
--restart always \
--name kube_runner \
-d gitea/act_runner:latest
```