update actions runner

This commit is contained in:
Cyryl Płotnicki 2023-07-23 08:31:31 +01:00
parent 542f921635
commit 1f3682fe66

View file

@ -1,4 +1,9 @@
{ config, pkgs, inputs, lib, ... }: { { config, pkgs, inputs, lib, system, ... }:
let
unstable = inputs.nixpkgs-nixos-unstable;
package = unstable.legacyPackages."${system}".gitea-actions-runner;
in
{
sops.secrets."gitea-runner-token" = { sops.secrets."gitea-runner-token" = {
sopsFile = ./gitea-runner-token.sops; sopsFile = ./gitea-runner-token.sops;
format = "binary"; format = "binary";
@ -7,17 +12,24 @@
enable = true; enable = true;
autoPrune.enable = true; autoPrune.enable = true;
}; };
services.gitea-actions-runner.instances.bolty1 = { disabledModules = [ "services/continuous-integration/gitea-actions-runner.nix" ];
enable = true; imports =
url = "https://git.cyplo.dev"; [ "${unstable}/nixos/modules/services/continuous-integration/gitea-actions-runner.nix" ];
tokenFile = config.sops.secrets."gitea-runner-token".path;
name = "bolty1"; services.gitea-actions-runner = {
labels = [ inherit package;
"nixery-nix-node:docker://nixery.dev/shell/nix/git/nodejs:latest" instances.bolty1 = {
"nix-flakes:docker://nixpkgs/nix-flakes:latest" enable = true;
"node16:docker://node:16-bullseye" # compat with github actions url = "https://git.cyplo.dev";
"node-latest:docker://node:lts-bookworm" # compat with github actions tokenFile = config.sops.secrets."gitea-runner-token".path;
"ubuntu-kinetic:docker://ubuntu:kinetic" # compat with github actions name = "bolty1";
]; labels = [
"nixery-nix-node:docker://nixery.dev/shell/nix/git/nodejs:latest"
"nix-flakes:docker://nixpkgs/nix-flakes:latest"
"node16:docker://node:16-bullseye" # compat with github actions
"node-latest:docker://node:lts-bookworm" # compat with github actions
"ubuntu-kinetic:docker://ubuntu:kinetic" # compat with github actions
];
};
}; };
} }