From c9323b3f09fc9a867c1d94488c3269c8fb8b6afc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zoran=20Peri=C4=8Di=C4=87?= Date: Fri, 20 Mar 2026 13:45:23 +0100 Subject: [PATCH] v0.3.0-3 --- config.yaml | 5 +++-- gitea-act_runner.spec | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/config.yaml b/config.yaml index c91384e..1fc9fab 100644 --- a/config.yaml +++ b/config.yaml @@ -13,7 +13,8 @@ runner: # Execute how many tasks concurrently at the same time. capacity: 1 # Extra environment variables to run jobs. - envs: {} + envs: + npm_config_store_dir: /cache/pnpm-store # Extra environment variables to run jobs from a file. # It will be ignored if it's empty or the file doesn't exist. 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). privileged: false # 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. # If it's empty, /workspace will be used. workdir_parent: diff --git a/gitea-act_runner.spec b/gitea-act_runner.spec index 64789ab..7cf4202 100644 --- a/gitea-act_runner.spec +++ b/gitea-act_runner.spec @@ -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 755 %{buildroot}/var/cache/act-runner/pnpm-store + %post %sysusers_create_package gitea-act-runner %{SOURCE13} @@ -91,6 +93,9 @@ fi %dir %{_sysconfdir}/gitea/runners %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 * Mon Mar 17 2025 Zoran Pericic - 0.3.0-2 - Add gitea-runner-podman.service for rootless Podman API socket