-
Notifications
You must be signed in to change notification settings - Fork 0
/
karellen-sysbox-ghar.spec
60 lines (43 loc) · 1.56 KB
/
karellen-sysbox-ghar.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
%global debug_package %{nil}
Name: karellen-sysbox-ghar
Version: 0.0.3
Release: 1
License: ASL 2.0
Summary: Karellen GitHub Actions Runner for Sysbox Containers
Url: https://github.com/karellen/%{name}
BuildRequires: systemd-rpm-macros
Requires: karellen-sysbox
Requires: python3
Requires: python3-requests
Source0: %{name}-%{version}.tar.gz
%description
A service that spawns a Sysbox-secured self-hosted GitHub Actions Runner
%prep
%autosetup
%build
%install
install -Dpm 744 karellen-sysbox-ghar-wrapper -t %{buildroot}/%{_sbindir}/
install -Dpm 600 karellen-sysbox-ghar -t %{buildroot}%{_sysconfdir}/sysconfig/
install -Dpm 644 karellen-sysbox-ghar.service -t %{buildroot}%{_unitdir}/
%files
%license LICENSE
%attr(600, root, root) %config(noreplace) %{_sysconfdir}/sysconfig/karellen-sysbox-ghar
%attr(700, root, root) %{_sbindir}/karellen-sysbox-ghar-wrapper
%{_unitdir}/karellen-sysbox-ghar.service
%post
%systemd_post karellen-sysbox-ghar.service
%preun
%systemd_preun karellen-sysbox-ghar.service
%postun
%systemd_postun_with_restart karellen-sysbox-ghar.service
%changelog
* Tue Jun 27 2023 Arcadiy Ivanov <[email protected]> 0.0.3-1
- Ensure retries on recoverable GitHub API failures Make sure to require
network being online Add connection and read timeout options
- Add README ([email protected])
* Sat May 06 2023 Arcadiy Ivanov <[email protected]> 0.0.2-1
- Make sure `docker stop` doesn't fail the service when there is nothing to
stop ([email protected])
* Sat May 06 2023 Arcadiy Ivanov <[email protected]> 0.0.1-1
- Initial release