diff --git a/.gitea/workflows/analysis.yml b/.gitea/workflows/analysis.yml index 1f1d379..64fffa3 100644 --- a/.gitea/workflows/analysis.yml +++ b/.gitea/workflows/analysis.yml @@ -6,6 +6,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Install dependencies for Nix setup action + run: | + apt update -y + apt install sudo -y - uses: http://github.com/cachix/install-nix-action@v18 - uses: http://github.com/cachix/cachix-action@v12 with: diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index acc4ae2..729ed59 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -10,6 +10,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 + - name: Install dependencies for Nix setup action + run: | + apt update -y + apt install sudo -y - uses: cachix/install-nix-action@v31 with: install_url: https://releases.nixos.org/nix/nix-2.28.5/install diff --git a/modules/gitea/thea/default.nix b/modules/gitea/thea/default.nix index 421cad6..620d0c1 100644 --- a/modules/gitea/thea/default.nix +++ b/modules/gitea/thea/default.nix @@ -1,5 +1,6 @@ -{nodes, ...}:let +{nodes, inputs, pkgs, ...}:let sin-address = "192.168.1.14"; + unstable = import inputs.unstable {system = pkgs.system;}; in{ imports = [ ./virtualisation.nix @@ -10,6 +11,8 @@ in{ destination = "${sin-address}:22"; }]; + services.gitea-actions-runner.package = unstable.gitea-actions-runner; + services.gitea-actions-runner.instances = { "gitea.shobu.fr-runner" = { enable = true; @@ -18,9 +21,9 @@ in{ token = "uEDPBW6Z9oItAKRtloVwis0LkPbD4OmV2w5esOhW"; labels = [ # provide a debian base with nodejs for actions - "debian-latest:docker://node:18-bullseye" + "debian-latest:docker://node:20-bullseye" # fake the ubuntu name, because node provides no ubuntu builds - "ubuntu-latest:docker://node:18-bullseye" + "ubuntu-latest:docker://node:20-bullseye" # provide native execution on the host #"native:host" ]