Initialize Git Repository: 'Gitea-Action-Runner'
All checks were successful
Gitea Action Runner (Bookworm) / Gitea Action Runner [arm64] (push) Successful in 26s
Gitea Action Runner (Bookworm) / Gitea Action Runner [amd64] (push) Successful in 28s
Gitea Action Runner (Noble) / Gitea Action Runner [arm64] (push) Successful in 24s
Gitea Action Runner (Noble) / Gitea Action Runner [amd64] (push) Successful in 24s
Gitea Action Runner (Trixie) / Gitea Action Runner [arm64] (push) Successful in 25s
Gitea Action Runner (Trixie) / Gitea Action Runner [amd64] (push) Successful in 27s

This commit is contained in:
Cantibra
2026-01-26 06:10:15 +01:00
commit dd94707aea
16 changed files with 1043 additions and 0 deletions

1
root/DEBIAN/conffiles Normal file
View File

@@ -0,0 +1 @@
/etc/act_runner/act_runner.yaml

9
root/DEBIAN/control Normal file
View File

@@ -0,0 +1,9 @@
Package: act-runner
Version: 0.2.13
Architecture:
Installed-Size:
Priority: optional
Section: misc
Homepage: http://www.privlab.it
Maintainer: PrivLab <repository@privlab.it>
Description: Gitea Action Runner

33
root/DEBIAN/postinst Normal file
View File

@@ -0,0 +1,33 @@
#!/usr/bin/sh
set -e
set -u
if [ -d '/run/systemd/system' ]; then
/usr/bin/systemctl --system daemon-reload > '/dev/null' 2>&1 || \
/usr/bin/true
fi
case "${1}" in
configure)
if [ -x '/usr/bin/deb-systemd-helper' ]; then
/usr/bin/deb-systemd-helper unmask 'act_runner.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
if /usr/bin/deb-systemd-helper --quiet was-enabled 'act_runner.service'; then
/usr/bin/deb-systemd-helper enable 'act_runner.service' > '/dev/null' 2>&1 || \
/usr/bin/true
else
/usr/bin/deb-systemd-helper update-state 'act_runner.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
if [ -x '/etc/init.d/traefik-certs-dumper' ]; then
/usr/sbin/update-rc.d 'act_runner' defaults > '/dev/null' 2>&1 || \
/usr/bin/true
fi
/usr/bin/touch '/etc/act_runner/act_runner.env'
/usr/bin/chown --quiet --recursive 'git':'root' '/etc/act_runner'
/usr/bin/chown --quiet 'git':'git' '/var/cache/act_runner'
/usr/bin/chown --quiet 'git':'git' '/var/lib/act_runner'
;;
esac

32
root/DEBIAN/postrm Normal file
View File

@@ -0,0 +1,32 @@
#!/usr/bin/sh
set -e
set -u
if [ -d '/run/systemd/system' ]; then
/usr/bin/systemctl --system daemon-reload > '/dev/null' || \
/usr/bin/true
fi
case "${1}" in
remove)
if [ -x '/usr/bin/deb-systemd-helper' ]; then
/usr/bin/deb-systemd-helper mask 'act_runner.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
;;
purge)
if [ -x '/usr/bin/deb-systemd-helper' ]; then
/usr/bin/deb-systemd-helper purge 'act_runner.service' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper unmask 'act_runner.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
if /usr/bin/getent passwd 'git' > '/dev/null'; then
/usr/sbin/deluser 'git' > '/dev/null' 2>&1
fi
if /usr/bin/getent group 'git' > '/dev/null'; then
/usr/sbin/deluser --group 'git' > '/dev/null' 2>&1
fi
;;
esac

39
root/DEBIAN/preinst Normal file
View File

@@ -0,0 +1,39 @@
#!/usr/bin/sh
set -e
set -u
case "${1}" in
install)
if ! /usr/bin/getent passwd 'git' > '/dev/null' 2>&1; then
/usr/sbin/adduser --quiet \
--system \
--home '/nonexistent' \
--shell '/usr/sbin/nologin' \
--no-create-home \
--group \
--disabled-password \
--disabled-login \
'git' > '/dev/null' 2>&1
/usr/bin/echo "########################################################################"
/usr/bin/echo "# #"
/usr/bin/echo "# ! Run this commands as User 'git' and add your Gitea-Credentials ! #"
/usr/bin/echo "# ! to activate the Gitea Action Runner ! #"
/usr/bin/echo "# #"
/usr/bin/echo "# /usr/bin/sudo --user='git' \ #"
/usr/bin/echo "# /usr/bin/act_runner register \ #"
/usr/bin/echo "# --config '/etc/act_runner/act_runner.yaml' \ #"
/usr/bin/echo "# --no-interactive \ #"
/usr/bin/echo "# --instance 'https://<URL>/' \ #"
/usr/bin/echo "# --labels '<LABEL>:<HOST>' \ #"
/usr/bin/echo "# --name '<NAME>' \ #"
/usr/bin/echo "# --token '<TOKEN>' #"
/usr/bin/echo "# #"
/usr/bin/echo "# /bin/chmod '0440' '/etc/act_runner/act_runner' #"
/usr/bin/echo "# #"
/usr/bin/echo "# /bin/chgrp 'root' '/etc/act_runner/act_runner' #"
/usr/bin/echo "# #"
/usr/bin/echo "########################################################################"
fi
;;
esac

21
root/DEBIAN/prerm Normal file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/sh
set -e
set -u
case "${1}" in
remove)
if [ -x '/usr/bin/deb-systemd-invoke' ]; then
/usr/bin/deb-systemd-invoke stop 'act_runner.service' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-invoke disable 'act_runner.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
if [ -x '/etc/init.d/act_runner' ]; then
/usr/sbin/update-rc.d 'act_runner' remove > '/dev/null' 2>&1 || \
/usr/bin/true
fi
/usr/bin/rm --force --recursive '/var/cache/act_runner/'*
/usr/bin/rm --force --recursive '/var/lib/act_runner/'*
;;
esac