Use constant for binary name to avoid oopsies

This commit is contained in:
2025-01-22 11:32:42 +01:00
parent eae77599be
commit 7bce917679
+5 -4
View File
@@ -2,6 +2,7 @@
A runner for Gitea based on act.}
%global rootless_docker_user docker-rootless
%global act_runner_bin act_runner
%global debug_package %{nil}
%global golicenses LICENSE
@@ -49,17 +50,17 @@ Run gitea actions in non-root docker containers
%systemd_user_post %{rootless_docker_user}.service %{name}.service
loginctl enable-linger %{rootless_docker_user}
cd ~%{rootless_docker_user}/act_runner
act_runner register
act_runner generate-config > config
%{act_runner_bin} register
%{act_runner_bin} generate-config > config
%preun %{rootless_docker_user}
%systemd_user_preun %{rootless_docker_user}.service act_runner.service
%systemd_user_preun %{rootless_docker_user}.service %{name}.service
%prep
%setup -q -n act_runner
%build
go build %{gobuild_baseflags} -o bin/act_runner %{goipath}
go build %{gobuild_baseflags} -o bin/%{act_runner_bin} %{goipath}
%install
install -m 0755 -vd %{buildroot}%{_bindir}