use native nix runner service
This commit is contained in:
parent
cda4de62b6
commit
41e5077f7d
@ -2,11 +2,20 @@
|
|||||||
sin-address = "192.168.1.14";
|
sin-address = "192.168.1.14";
|
||||||
in{
|
in{
|
||||||
imports = [
|
imports = [
|
||||||
./virtualisation.nix
|
# ./virtualisation.nix
|
||||||
];
|
];
|
||||||
networking.nat.forwardPorts = [{
|
networking.nat.forwardPorts = [{
|
||||||
sourcePort = nodes.sin.config.services.gitea.settings.server.SSH_PORT;
|
sourcePort = nodes.sin.config.services.gitea.settings.server.SSH_PORT;
|
||||||
proto = "tcp";
|
proto = "tcp";
|
||||||
destination = "${sin-address}:22";
|
destination = "${sin-address}:22";
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
services.gitea-actions-runner.instances = {
|
||||||
|
gitea.shobu.fr-runner = {
|
||||||
|
enable = true;
|
||||||
|
name = "gitea.shobu.fr-runner";
|
||||||
|
url = nodes.sin.gitea.settings.server.ROOT_URL;
|
||||||
|
token = "uEDPBW6Z9oItAKRtloVwis0LkPbD4OmV2w5esOhW";
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,32 +15,32 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.oci-containers.containers = let
|
# virtualisation.oci-containers.containers = let
|
||||||
runner_config = pkgs.writeTextFile {
|
# runner_config = pkgs.writeTextFile {
|
||||||
name = "config.yml";
|
# name = "config.yml";
|
||||||
text = ''
|
# text = ''
|
||||||
container:
|
# container:
|
||||||
network: "host"
|
# network: "host"
|
||||||
'';
|
# '';
|
||||||
};
|
|
||||||
in {
|
|
||||||
gitea-runner = {
|
|
||||||
image = "gitea/act_runner@sha256:8477d5b61b655caad4449888bae39f1f34bebd27db56cb15a62dccb3dcf3a944";
|
|
||||||
autoStart = true;
|
|
||||||
|
|
||||||
# capabilities = {
|
|
||||||
# NET_RAW = true;
|
|
||||||
# };
|
# };
|
||||||
|
# in {
|
||||||
|
# gitea-runner = {
|
||||||
|
# image = "gitea/act_runner@sha256:8477d5b61b655caad4449888bae39f1f34bebd27db56cb15a62dccb3dcf3a944";
|
||||||
|
# autoStart = true;
|
||||||
|
|
||||||
environment = {
|
# # capabilities = {
|
||||||
GITEA_INSTANCE_URL = nodes.sin.config.services.gitea.settings.server.ROOT_URL;
|
# # NET_RAW = true;
|
||||||
GITEA_RUNNER_REGISTRATION_TOKEN = "uEDPBW6Z9oItAKRtloVwis0LkPbD4OmV2w5esOhW";
|
# # };
|
||||||
CONFIG_FILE = "/config.yml";
|
|
||||||
};
|
# environment = {
|
||||||
volumes = [
|
# GITEA_INSTANCE_URL = nodes.sin.config.services.gitea.settings.server.ROOT_URL;
|
||||||
"/var/run/docker.sock:/var/run/docker.sock"
|
# GITEA_RUNNER_REGISTRATION_TOKEN = "uEDPBW6Z9oItAKRtloVwis0LkPbD4OmV2w5esOhW";
|
||||||
"${runner_config}:/config.yml:ro"
|
# CONFIG_FILE = "/config.yml";
|
||||||
];
|
# };
|
||||||
};
|
# volumes = [
|
||||||
};
|
# "/var/run/docker.sock:/var/run/docker.sock"
|
||||||
|
# "${runner_config}:/config.yml:ro"
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
# };
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user