Configure action runner with needed permissions to deploy static sites.
This commit is contained in:
parent
a5f06924da
commit
b11ee499f3
1 changed files with 25 additions and 2 deletions
|
@ -1,4 +1,9 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
utils,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
name = "dev";
|
||||
|
@ -43,14 +48,32 @@ in
|
|||
"ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-22.04"
|
||||
"native:host"
|
||||
];
|
||||
settings = {
|
||||
container = {
|
||||
network = "bridge";
|
||||
};
|
||||
};
|
||||
hostPackages = with pkgs; [
|
||||
bash
|
||||
coreutils
|
||||
curl
|
||||
gawk
|
||||
gitMinimal
|
||||
gnused
|
||||
nodejs
|
||||
rsync
|
||||
wget
|
||||
];
|
||||
tokenFile = config.age.secrets."${name}_runner_linux".path;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services."gitea-runner-${utils.escapeSystemdPath "${name}-linux"}".serviceConfig.ReadWritePaths = "/var/www";
|
||||
|
||||
environment.systemPackages = with pkgs; [ unstable.forgejo-runner ];
|
||||
|
||||
networking.firewall.trustedInterfaces = [ "br-+" ];
|
||||
networking.firewall.trustedInterfaces = [ "podman0" ];
|
||||
|
||||
containers."${name}" = {
|
||||
autoStart = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue