From 5e0174114c056c5afec88888a78242097f62641d Mon Sep 17 00:00:00 2001 From: teutat3s Date: Wed, 29 May 2024 18:39:45 +0200 Subject: [PATCH] gitea-actions-runner: fix PATH in systemd --- .forgejo/workflows/check.yml | 7 ------- hosts/tankstelle/forgejo-actions-runner.nix | 12 ++++++++++++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.forgejo/workflows/check.yml b/.forgejo/workflows/check.yml index e4dcbb1..0b9c405 100644 --- a/.forgejo/workflows/check.yml +++ b/.forgejo/workflows/check.yml @@ -1,17 +1,10 @@ name: Flake checks on: [pull_request] -env: - PATH: /run/current-system/sw/bin - HOME: /var/lib/gitea-runner/tankstelle jobs: Check: runs-on: self-hosted steps: - - name: Enter ci devshell - run: | - nix --accept-flake-config --access-tokens '' develop .#ci - - name: Check out repository code uses: https://code.forgejo.org/actions/checkout@v4 diff --git a/hosts/tankstelle/forgejo-actions-runner.nix b/hosts/tankstelle/forgejo-actions-runner.nix index 501e42a..3f7e0fe 100644 --- a/hosts/tankstelle/forgejo-actions-runner.nix +++ b/hosts/tankstelle/forgejo-actions-runner.nix @@ -15,6 +15,18 @@ # Needed for the docker runner to communicate with the act_runner cache networking.firewall.trustedInterfaces = [ "br-+" ]; + systemd.services."gitea-runner-tankstelle".path = with pkgs; [ + coreutils + bash + coreutils + curl + gawk + gitMinimal + gnused + nodejs + wget + ]; + # forgejo actions runner # https://forgejo.org/docs/latest/admin/actions/ # https://docs.gitea.com/usage/actions/quickstart