This commit is contained in:
2026-03-20 13:45:23 +01:00
parent e907064d6e
commit c9323b3f09
2 changed files with 8 additions and 2 deletions

View File

@@ -13,7 +13,8 @@ runner:
# Execute how many tasks concurrently at the same time. # Execute how many tasks concurrently at the same time.
capacity: 1 capacity: 1
# Extra environment variables to run jobs. # Extra environment variables to run jobs.
envs: {} envs:
npm_config_store_dir: /cache/pnpm-store
# Extra environment variables to run jobs from a file. # Extra environment variables to run jobs from a file.
# It will be ignored if it's empty or the file doesn't exist. # It will be ignored if it's empty or the file doesn't exist.
env_file: .env env_file: .env
@@ -59,7 +60,7 @@ container:
# Whether to use privileged mode or not when launching task containers (privileged mode is required for Docker-in-Docker). # Whether to use privileged mode or not when launching task containers (privileged mode is required for Docker-in-Docker).
privileged: false privileged: false
# And other options to be used when the container is started (eg, --add-host=my.gitea.url:host-gateway). # And other options to be used when the container is started (eg, --add-host=my.gitea.url:host-gateway).
options: options: -v /var/cache/act-runner/pnpm-store:/cache/pnpm-store:Z
# The parent directory of a job's working directory. # The parent directory of a job's working directory.
# If it's empty, /workspace will be used. # If it's empty, /workspace will be used.
workdir_parent: workdir_parent:

View File

@@ -48,6 +48,8 @@ install -m 755 %{SOURCE12} %{buildroot}%{_bindir}/gitea-act-runner-setup
install -d -m 750 %{buildroot}%{_sharedstatedir}/gitea/runners install -d -m 750 %{buildroot}%{_sharedstatedir}/gitea/runners
install -d -m 755 %{buildroot}/var/cache/act-runner/pnpm-store
%post %post
%sysusers_create_package gitea-act-runner %{SOURCE13} %sysusers_create_package gitea-act-runner %{SOURCE13}
@@ -91,6 +93,9 @@ fi
%dir %{_sysconfdir}/gitea/runners %dir %{_sysconfdir}/gitea/runners
%config(noreplace) %{_sysconfdir}/gitea/runners/runner1.yaml %config(noreplace) %{_sysconfdir}/gitea/runners/runner1.yaml
%dir %attr(0750,gitea-runner,gitea-runner) /var/cache/act-runner
%dir %attr(0750,gitea-runner,gitea-runner) /var/cache/act-runner/pnpm-store
%changelog %changelog
* Mon Mar 17 2025 Zoran Pericic <zpericic@netst.org> - 0.3.0-2 * Mon Mar 17 2025 Zoran Pericic <zpericic@netst.org> - 0.3.0-2
- Add gitea-runner-podman.service for rootless Podman API socket - Add gitea-runner-podman.service for rootless Podman API socket