update actions runner
This commit is contained in:
parent
542f921635
commit
1f3682fe66
1 changed files with 25 additions and 13 deletions
|
@ -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" = {
|
||||
sopsFile = ./gitea-runner-token.sops;
|
||||
format = "binary";
|
||||
|
@ -7,7 +12,13 @@
|
|||
enable = true;
|
||||
autoPrune.enable = true;
|
||||
};
|
||||
services.gitea-actions-runner.instances.bolty1 = {
|
||||
disabledModules = [ "services/continuous-integration/gitea-actions-runner.nix" ];
|
||||
imports =
|
||||
[ "${unstable}/nixos/modules/services/continuous-integration/gitea-actions-runner.nix" ];
|
||||
|
||||
services.gitea-actions-runner = {
|
||||
inherit package;
|
||||
instances.bolty1 = {
|
||||
enable = true;
|
||||
url = "https://git.cyplo.dev";
|
||||
tokenFile = config.sops.secrets."gitea-runner-token".path;
|
||||
|
@ -20,4 +31,5 @@
|
|||
"ubuntu-kinetic:docker://ubuntu:kinetic" # compat with github actions
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue