This commit is contained in:
2026-03-17 03:22:54 +01:00
parent 6ddeea9491
commit e907064d6e
5 changed files with 33 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
Name: gitea-act_runner
Version: 0.3.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Gitea act runner service.
License: MIT
Group: System Environment/Base
@@ -12,9 +12,11 @@ Source10: gitea-act_runner@.service
Source11: config.yaml
Source12: gitea-act-runner-setup
Source13: gitea-act-runner.sysusers
Source14: gitea-runner-podman.service
BuildRequires: systemd-rpm-macros
Requires: shadow-utils
Requires: podman
%{?systemd_requires}
ExclusiveArch: x86_64 aarch64
@@ -37,6 +39,7 @@ install -m 755 %{SOURCE1} %{buildroot}%{_bindir}/gitea-act-runner
%endif
install -p -D -m 644 %{SOURCE10} %{buildroot}%{_unitdir}/gitea-act_runner@.service
install -p -D -m 644 %{SOURCE14} %{buildroot}%{_unitdir}/gitea-runner-podman.service
install -p -D -m 644 %{SOURCE13} %{buildroot}%{_sysusersdir}/gitea-act-runner.conf
install -d -m 750 %{buildroot}%{_sysconfdir}/gitea/runners
@@ -61,12 +64,15 @@ if ! grep -q "gitea-runner" /etc/subuid; then
fi
%systemd_post gitea-act_runner@.service
%systemd_post gitea-runner-podman.service
%preun
%systemd_preun gitea-act_runner@.service
%systemd_preun gitea-runner-podman.service
%postun
%systemd_postun gitea-act_runner@.service
%systemd_postun gitea-runner-podman.service
%clean
%{__rm} -rf %{buildroot}
@@ -77,9 +83,14 @@ fi
%{_bindir}/gitea-act-runner
%{_bindir}/gitea-act-runner-setup
%{_unitdir}/gitea-act_runner@.service
%{_unitdir}/gitea-runner-podman.service
%{_sysusersdir}/gitea-act-runner.conf
%defattr(-,gitea-runner,gitea-runner,750)
%dir %{_sysconfdir}/gitea
%dir %{_sysconfdir}/gitea/runners
%config(noreplace) %{_sysconfdir}/gitea/runners/runner1.yaml
%changelog
* Mon Mar 17 2025 Zoran Pericic <zpericic@netst.org> - 0.3.0-2
- Add gitea-runner-podman.service for rootless Podman API socket