Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package forgejo-runner for openSUSE:Factory 
checked in at 2025-03-11 20:46:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/forgejo-runner (Old)
 and      /work/SRC/openSUSE:Factory/.forgejo-runner.new.19136 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "forgejo-runner"

Tue Mar 11 20:46:20 2025 rev:14 rq:1252051 version:6.2.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/forgejo-runner/forgejo-runner.changes    
2025-02-03 21:46:44.558492578 +0100
+++ /work/SRC/openSUSE:Factory/.forgejo-runner.new.19136/forgejo-runner.changes 
2025-03-11 20:47:38.848036168 +0100
@@ -1,0 +2,17 @@
+Mon Mar 10 23:14:27 UTC 2025 - Marcus Rueckert <mrueck...@suse.de>
+
+- also own the runners file
+
+-------------------------------------------------------------------
+Mon Mar 10 21:30:45 UTC 2025 - Marcus Rueckert <mrueck...@suse.de>
+
+- import config handling from the gitea-action-runner package
+  the config can contain secrets and we should probably protect
+  them with proper default permissions
+
+-------------------------------------------------------------------
+Mon Mar 10 16:55:11 UTC 2025 - Marcus Rueckert <mrueck...@suse.de>
+
+- not sure why this was installed as an user service
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ forgejo-runner.spec ++++++
--- /var/tmp/diff_new_pack.dCHlyp/_old  2025-03-11 20:47:39.432060620 +0100
+++ /var/tmp/diff_new_pack.dCHlyp/_new  2025-03-11 20:47:39.432060620 +0100
@@ -16,6 +16,8 @@
 #
 
 
+%define services %{name}.service
+
 Name:           forgejo-runner
 Version:        6.2.2
 Release:        0
@@ -29,7 +31,9 @@
 BuildRequires:  fish
 BuildRequires:  zsh
 BuildRequires:  golang(API) >= 1.23
+BuildRequires:  pkgconfig(systemd)
 Requires:       (podman or docker)
+%{?systemd_ordering}
 
 %description
 A daemon that connects to a Forgejo instance and runs jobs for continous
@@ -79,12 +83,16 @@
    -ldflags="-X 
gitea.com/gitea/act_runner/internal/pkg/ver.version=v%{version}" \
    -o bin/%{name}
 
+bin/%{name} generate-config > config.yaml
+
+perl -p -i -e 's|file: \.runner|file: /etc/forgejo-runner/runners|g' 
config.yaml
+
 %install
 # Install the binary.
 install -D -m 0755 bin/%{name} %{buildroot}/%{_bindir}/%{name}
 
 # Install the service file.
-install -D -m 0644 %{SOURCE2} %{buildroot}/%{_userunitdir}/%{name}.service
+install -D -m 0644 %{SOURCE2} %{buildroot}/%{_unitdir}/%{name}.service
 
 # create the bash completion file
 mkdir -p %{buildroot}%{_datarootdir}/bash-completion/completions/
@@ -98,14 +106,33 @@
 mkdir -p %{buildroot}%{_datadir}/zsh/site-functions/
 %{buildroot}/%{_bindir}/%{name} completion zsh > 
%{buildroot}%{_datadir}/zsh/site-functions/%{name}
 
+install -D -m 0750 -d          %{buildroot}%{_sysconfdir}/%{name}
+install    -m 0640 config.yaml %{buildroot}%{_sysconfdir}/%{name}/config.yaml
+install    -m 0640 /dev/null   %{buildroot}%{_sysconfdir}/%{name}/runners
+install -D -m 0750 -d          %{buildroot}%{_localstatedir}/lib/%{name}
+
 %check
 bin/%{name} --version | grep %{version}
 
+%pre
+%service_add_pre %{services}
+
+%preun
+%service_del_preun %{services}
+
+%post
+%service_add_post %{services}
+
+%postun
+%service_del_postun %{services}
+
 %files
 %doc README.md
 %license LICENSE
 %{_bindir}/%{name}
-%{_userunitdir}/forgejo-runner.service
+%{_unitdir}/forgejo-runner.service
+%config(noreplace) %{_sysconfdir}/%{name}
+%dir %{_localstatedir}/lib/%{name}
 
 %files -n %{name}-bash-completion
 %{_datadir}/bash-completion/completions/%{name}

++++++ forgejo-runner.service ++++++
--- /var/tmp/diff_new_pack.dCHlyp/_old  2025-03-11 20:47:39.508063803 +0100
+++ /var/tmp/diff_new_pack.dCHlyp/_new  2025-03-11 20:47:39.512063970 +0100
@@ -3,8 +3,13 @@
 
 [Service]
 Type=simple
-ExecStart=/usr/bin/forgejo-runner daemon
-Restart=on-failure
+StartLimitInterval=5
+StartLimitBurst=10
+Environment="LANG=en_US.UTF-8" "LC_ALL=en_US.UTF-8"
+WorkingDirectory=/var/lib/forgejo-runner
+ExecStart=/usr/bin/forgejo-runner daemon --config 
/etc/forgejo-runner/config.yaml
+Restart=always
+RestartSec=120
 
 [Install]
 WantedBy=default.target

Reply via email to