Initialcommit
gitea-runner-release-local.yaml (push) Invalid workflow file

This commit is contained in:
florian committed 2026-10-18 17:27:06 +02:00
commit db512f7633
8 files changed
+212

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
Package: gitea-runner
Version: @VERSION@-@REVISION@
Architecture: amd64
Maintainer: Florian@gansejunge.com
Section: devel
Priority: optional
Depends: adduser
Recommends: docker.io | docker-ce
Homepage: https://gitea.com/gitea/runner
Description: Runner for Gitea Actions
gitea-runner executes Gitea Actions workflow jobs, usually inside Docker
containers. It runs as the unprivileged gitea-runner user, with state in
/var/lib/gitea-runner and configuration in /etc/gitea-runner.
+35
View File
@@ -0,0 +1,35 @@
#!/bin/sh
set -e
case "$1" in
configure)
if ! getent passwd gitea-runner >/dev/null; then
adduser --system --group --no-create-home \
--home /var/lib/gitea-runner --shell /usr/sbin/nologin \
--gecos "Gitea Actions runner" gitea-runner
fi
install -d -o gitea-runner -g gitea-runner -m 0750 /var/lib/gitea-runner
install -d -o root -g gitea-runner -m 0750 /etc/gitea-runner
if [ ! -e /etc/gitea-runner/config.yaml ]; then
/usr/bin/gitea-runner generate-config > /etc/gitea-runner/config.yaml
chown root:gitea-runner /etc/gitea-runner/config.yaml
chmod 0640 /etc/gitea-runner/config.yaml
fi
if getent group docker >/dev/null; then
adduser --quiet gitea-runner docker || true
fi
if [ -d /run/systemd/system ]; then
systemctl daemon-reload || true
systemctl enable gitea-runner.service >/dev/null 2>&1 || true
if systemctl is-active --quiet gitea-runner.service; then
systemctl restart gitea-runner.service || true
fi
fi
;;
esac
exit 0
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
set -e
case "$1" in
remove)
if [ -d /run/systemd/system ]; then
systemctl disable gitea-runner.service >/dev/null 2>&1 || true
systemctl daemon-reload || true
fi
;;
purge)
rm -rf /etc/gitea-runner /var/lib/gitea-runner
if getent passwd gitea-runner >/dev/null; then
deluser --quiet --system gitea-runner || true
fi
if getent group gitea-runner >/dev/null; then
delgroup --quiet --system gitea-runner || true
fi
;;
esac
exit 0
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
set -e
case "$1" in
remove|deconfigure)
if [ -d /run/systemd/system ]; then
systemctl stop gitea-runner.service || true
fi
;;
esac
exit 0
@@ -0,0 +1,21 @@
[Unit]
Description=Gitea Actions runner (gitea-runner)
Documentation=https://gitea.com/gitea/gitea-runner
After=network-online.target docker.service
Wants=network-online.target
ConditionPathExists=/var/lib/gitea-runner/.runner
[Service]
Type=simple
User=gitea-runner
Group=gitea-runner
WorkingDirectory=/var/lib/gitea-runner
StateDirectory=gitea-runner
Environment=HOME=/var/lib/gitea-runner
ExecStart=/usr/bin/gitea-runner daemon --config /etc/gitea-runner/config.yaml
Restart=on-failure
RestartSec=10
TimeoutSec=0
[Install]
WantedBy=multi-user.target