From c243db8b9a379d462ce77e9f9be7166313687693 Mon Sep 17 00:00:00 2001 From: anima Date: Sat, 25 Jan 2025 09:51:17 +0100 Subject: [PATCH] replace drone ci --- .env.sample | 11 ++++++++++- README.md | 11 +++++++++-- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.env.sample b/.env.sample index f37c809..f53c1ef 100644 --- a/.env.sample +++ b/.env.sample @@ -1 +1,10 @@ -BASEDIR= \ No newline at end of file +BASEDIR= + +# gitea settings +GITTAG= + +USER_UID=1000 +USER_GID=1000 + +## preconfig for app.ini +## https://github.com/go-gitea/gitea/tree/main/contrib/environment-to-ini \ No newline at end of file diff --git a/README.md b/README.md index b660fff..61616d7 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,13 @@ git.example.com { Since version 1.19.x Gitea has a CI handler integrated. These CI handler is mostly compatible with Github Actions. +### prepare +``` +adduser act_runner +adduser act_runner docker +``` + +### Setup Runner Setup: https://docs.gitea.com/usage/actions/act-runner Usage: https://docs.gitea.com/usage/actions/quickstart @@ -77,7 +84,7 @@ chmod +x act_runner ./act_runner --config config.yml daemon ``` -Service File +### Service File ``` [Unit] Description=Gitea Actions runner @@ -85,7 +92,7 @@ Documentation=https://gitea.com/gitea/act_runner After=docker.service [Service] -ExecStart=/usr/local/bin/act_runner daemon --config /etc/act_runner/config.yaml +ExecStart=/usr/local/bin/act_runner daemon --config /etc/act_runner/config.yml ExecReload=/bin/kill -s HUP $MAINPID WorkingDirectory=/var/lib/act_runner TimeoutSec=0